{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-59894","published":"2026-08-17T18:17:35.913000Z","last_modified":"2026-10-23T16:10:00.313000Z","status":"Deferred","cvss":{"version":"4.0","score":6.2,"severity":"MEDIUM","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"security-advisories@github.com","primary":false},"auth":true,"cwes":["CWE-94"],"cpes":[],"cpes_truncated":false,"vendors":["andialbrecht"],"products":["andialbrecht/sqlparse"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-3496-9g83-7v6x","ecosystem":"PyPI","name":"sqlparse","purl":"pkg:pypi/sqlparse","ranges":[{"introduced":"0","fixed":"0.6.0"}],"versions":["0.1.0","0.1.1","0.1.10","0.1.11","0.1.12","0.1.13","0.1.14","0.1.15","0.1.16","0.1.17","0.1.18","0.1.19","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.3.0","0.3.1","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5"],"versions_truncated":false},{"advisory":"PYSEC-2026-3696","ecosystem":"PyPI","name":"sqlparse","purl":"pkg:pypi/sqlparse","ranges":[{"introduced":"0","fixed":"0.6.0"}],"versions":["0.1.0","0.1.1","0.1.10","0.1.11","0.1.12","0.1.13","0.1.14","0.1.15","0.1.16","0.1.17","0.1.18","0.1.19","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.3.0","0.3.1","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5"],"versions_truncated":false}],"severity":"medium","priority_score":37,"links":{"html_es":"/es/cve/CVE-2026-59894/","html_en":"/en/cve/CVE-2026-59894/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-59894","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-59894"},"untrusted":{"vendor_name":"andialbrecht","product_name":"sqlparse","desc_en":"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":[{"untrusted_vendor":"andialbrecht","untrusted_product":"sqlparse","versions":[]}],"references":[{"url":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-3496-9g83-7v6x","tags":[]}]},"bulletins":[{"source":"suse","id":"SUSE-SU-2026:3910-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20263910-1/","published":"2026-09-01T10:04:37+00:00","severity":"high","exploited":false,"untrusted":{"title":"Security update for python-sqlparse"}},{"source":"suse","id":"SUSE-SU-2026:3907-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20263907-1/","published":"2026-09-01T09:10:50+00:00","severity":"high","exploited":false,"untrusted":{"title":"Security update for python-sqlparse"}},{"source":"suse","id":"SUSE-SU-2026:3906-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20263906-1/","published":"2026-09-01T09:10:15+00:00","severity":"high","exploited":false,"untrusted":{"title":"Security update for python3-sqlparse"}}]}