CVE-2026-59894Medium▾ Sunlitsqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse/filters/output.py fails to escape existing backslashes before quotes in sqlparse.format output_format='python' and output_format='php' and the correspond…
▾ Sunlit zone — Low / medium · no exploitation signal
impact 27.5 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Aug 18.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via NVD
0.1%
Last analysed / modified upstream
sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse/filters/output.py fails to escape existing backslashes before quotes in sqlparse.format output_format='python' and output_format='php' and the corresponding sqlformat -l modes, allowing crafted SQL to terminate the generated string and inject Python or PHP code when a downstream consumer executes or imports the generated source. This issue is fixed in version 0.6.0.
Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
Affected packages:
sqlparse < 0.6.0Patched in:
sqlparse 0.6.0Connected by shared product, vendor, weakness, or advisory.
GHSA-27jp-wm6q-gp25Mediumsqlparse: formatting list of tuples leads to denial of service
CVE-2026-84305Mediumsqlparse is a non-validating SQL parser module for Python
CVE-2026-54284High· 7.5sqlparse is a non-validating SQL parser module for Python
CVE-2026-59893High· 7.5sqlparse is a non-validating SQL parser module for Python
CVE-2021-32839High· 7.5StripComments filter contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service)
CVE-2024-4340High· 7.5sqlparse parsing heavily nested list leads to Denial of Service