Vulnerability

CVE-2026-59893

highCVSS 3.1 7.5Published 17 Aug 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, SQL_REGEX in sqlparse/keywords.py and the per-position loop in sqlparse/lexer.py repeatedly scan unmatched dollar-quoted literal and multiline-comment delimiters, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split(). This issue is fixed in version 0.6.0.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /andialbrecht/sqlparse/commit/d1d80602741f77ec78e5a04ce4719…
  • github.com /andialbrecht/sqlparse/security/advisories/GHSA-prg7-hcfm-m…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning