Vulnerability

CVE-2026-59894

mediumCVSS 4.0 6.2Published 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, 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.

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/security/advisories/GHSA-3496-9g83-7…

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

Start scanning