CVE-2026-59894

MEDIUMPre-NVD 6.26.2—
EchelonGraph scoreMEDIUM confidence

This medium-severity CVE scores 6.2 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.1% (2nd percentile of EPSS-scored CVEs). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: epss, secondary
6.2EG
EchelonGraph verdictMonitorLow exploitation likelihood right now — keep watching.
  • Lower severity and no public exploit yet
CISA-KEV: Not listedEPSS PROB: 0.1%CVSS: 6.2Exploit: None knownExposed services: Not assessed

A fix is available — apply it.

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.

CVSS v3
6.2
EG Score
6.2MEDIUMmedium confidence
EG Risk
28
EG Risk 28/100CISA SSVC

EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).

How it’s computed
Severity62% × 45%
Exploitation0% × 40%
Automatability0% × 15%
CISA SSVC: Track at every mission impact level.
Action: A fix is available. Apply it within your standard update timelines.
EPSS PROB
0.1%
EPSS %ILE
2nd
KEV
Not listed

CISA SSVCTrack at every mission impact level.

A fix is available. Apply it within your standard update timelines.

Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table

Published

August 17, 2026

Last Modified

September 18, 2026

Advisory Details (1)

Auto-updated Aug 17, 2026
🔬 Proof of concept available. Patch available. Sources: github.
github Patch Available🟡 PoC Available

Generated Python and PHP snippets allow SQL string breakout through unescaped backslashes · Advisory · andialbrecht/sqlparse · GitHub

https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-3496-9g83-7v6x

Vendor Advisories for CVE-2026-59894(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Affected Packages

(4 across 4 ecosystems)
Debian:12(1)
PackageVulnerable rangeFix by version rangeDependents
sqlparse0.4.2-1 ... 0.5.5-2 (11 versions)
  • every version on: no fix on record
—
Debian:13(1)
PackageVulnerable rangeFix by version rangeDependents
sqlparse0.5.3-1, 0.5.4-1, 0.5.5-1, 0.5.5-2
  • every version on: no fix on record
—
Debian:14(1)
PackageVulnerable rangeFix by version rangeDependents
sqlparse0.5.3-1, 0.5.4-1, 0.5.5-1, 0.5.5-2
  • every version on: no fix on record
—
PyPI(1)
PackageVulnerable rangeFix by version rangeDependents
sqlparse0.1.0 ... 0.5.5 (38 versions)
  • every version up to 0.6.0: fixed in 0.6.0
—

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 9× in last 7d / 45× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-10-04 23:22 UTCEPSS rescore
  2. 2026-10-03 17:48 UTCEG score recompute
  3. 2026-10-03 14:26 UTCEPSS rescore
  4. 2026-10-02 17:56 UTCEPSS rescore
  5. 2026-10-01 11:28 UTCEG score recompute
  6. 2026-09-30 15:03 UTCEPSS rescore
  7. 2026-09-30 10:00 UTCEG score recompute
  8. 2026-09-29 15:22 UTCEPSS rescore
  9. 2026-09-28 13:51 UTCEPSS rescore
  10. 2026-09-28 09:33 UTCEG score recompute
  11. 2026-09-27 13:48 UTCEPSS rescore
  12. 2026-09-27 08:06 UTCEG score recompute
  13. 2026-09-26 15:59 UTCEPSS rescore
  14. 2026-09-25 05:35 UTCEG score recompute
  15. 2026-09-24 14:04 UTCEPSS rescore
  16. 2026-09-24 04:08 UTCEG score recompute
  17. 2026-09-23 17:54 UTCEPSS rescore
  18. 2026-09-23 02:41 UTCEG score recompute
  19. 2026-09-22 01:14 UTCEG score recompute
  20. 2026-09-20 23:46 UTCEG score recompute
  21. 2026-09-20 20:16 UTCEPSS rescore
  22. 2026-09-19 21:49 UTCEG score recompute
  23. 2026-09-18 20:21 UTCEG score recompute
  24. 2026-09-18 19:28 UTCEPSS rescore
  25. 2026-09-18 00:34 UTCEG score recompute
Show 52 more
  1. 2026-09-17 19:31 UTCEPSS rescore
  2. 2026-09-16 23:07 UTCEG score recompute
  3. 2026-09-16 14:08 UTCEPSS rescore
  4. 2026-09-16 05:15 UTCEPSS rescore
  5. 2026-09-15 21:27 UTCEG score recompute
  6. 2026-09-15 03:11 UTCEPSS rescore
  7. 2026-09-14 19:50 UTCEG score recompute
  8. 2026-09-13 16:47 UTCEPSS rescore
  9. 2026-09-13 16:13 UTCEG score recompute
  10. 2026-09-12 14:46 UTCEG score recompute
  11. 2026-09-11 14:53 UTCEPSS rescore
  12. 2026-09-11 13:19 UTCEG score recompute
  13. 2026-09-10 10:17 UTCEG score recompute
  14. 2026-09-10 09:35 UTCEPSS rescore
  15. 2026-09-09 08:50 UTCEG score recompute
  16. 2026-09-08 22:01 UTCEPSS rescore
  17. 2026-09-08 07:23 UTCEG score recompute
  18. 2026-09-07 16:01 UTCEPSS rescore
  19. 2026-09-07 05:55 UTCEG score recompute
  20. 2026-09-06 13:47 UTCEPSS rescore
  21. 2026-09-05 03:01 UTCEG score recompute
  22. 2026-09-02 23:56 UTCEG score recompute
  23. 2026-09-02 14:12 UTCEPSS rescore
  24. 2026-09-01 22:24 UTCEG score recompute
  25. 2026-09-01 13:54 UTCEPSS rescore
  26. 2026-09-01 04:40 UTCEPSS rescore
  27. 2026-08-31 20:57 UTCEG score recompute
  28. 2026-08-30 19:17 UTCEPSS rescore
  29. 2026-08-30 16:05 UTCEG score recompute
  30. 2026-08-30 01:22 UTCEPSS rescore
  31. 2026-08-29 14:38 UTCEG score recompute
  32. 2026-08-28 21:42 UTCEPSS rescore
  33. 2026-08-28 12:59 UTCEG score recompute
  34. 2026-08-27 14:25 UTCEPSS rescore
  35. 2026-08-26 10:01 UTCEG score recompute
  36. 2026-08-25 13:49 UTCEPSS rescore
  37. 2026-08-25 08:34 UTCEG score recompute
  38. 2026-08-23 05:39 UTCEG score recompute
  39. 2026-08-23 00:19 UTCEPSS rescore
  40. 2026-08-22 04:11 UTCEG score recompute
  41. 2026-08-21 23:49 UTCEPSS rescore
  42. 2026-08-21 02:43 UTCEG score recompute
  43. 2026-08-20 22:55 UTCEPSS rescore
  44. 2026-08-20 01:16 UTCEG score recompute
  45. 2026-08-19 17:04 UTCEPSS rescore
  46. 2026-08-18 23:49 UTCEG score recompute
  47. 2026-08-18 13:48 UTCEPSS rescore
  48. 2026-08-17 22:22 UTCEG score recompute
  49. 2026-08-17 22:09 UTCEG score recompute
  50. 2026-08-17 18:29 UTCEG score recompute
  51. 2026-08-17 17:20 UTCEG score recompute
  52. 2026-08-17 17:19 UTCMITRE cvelistV5first tracked

Frequently asked(5)

What is CVE-2026-59894?
CVE-2026-59894 is a medium vulnerability published on August 17, 2026. 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 outputformat='python' and outputformat='php' and the corresponding sqlformat -l modes, allowing crafted SQL to terminate the…
When was CVE-2026-59894 disclosed?
CVE-2026-59894 was first published on August 17, 2026, with the most recent update on September 18, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-59894 actively exploited?
CVE-2026-59894 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 0.1% probability of exploitation in the next 30 days (2nd percentile of EPSS-scored CVEs).
What is the CVSS score of CVE-2026-59894?
CVE-2026-59894 has a CVSS base score of 6.2 (a secondary CVSS source that NVD displays; NVD's own analysis pending).
How do I remediate CVE-2026-59894?
A fix for CVE-2026-59894 is available: update to the fixed version the vendor names in its advisory. The vendor advisories EchelonGraph has for CVE-2026-59894 are linked in the Vendor Advisories panel on this page.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-59894

Explore →

Is Your Infrastructure Affected by CVE-2026-59894?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.