Vulnerability
CVE-2026-59894
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.
135 advisories report this vulnerability, across 8 ecosystems.
Advisories
- CGA-2325-2rvw-ggw6
- CGA-2fw3-jf32-57hm
- CGA-2x2c-8w4w-w669
- CGA-3399-h9mm-3jp3
- CGA-3fgc-2qfj-pp4p
- CGA-3qxc-2g4j-99fv
- CGA-3rwx-9qj7-rwv5
- CGA-4c98-747p-7rpr
- CGA-4cfr-3pcx-3jc9
- CGA-4g2m-24w6-7j7x
- CGA-4hmr-hv7r-3c77
- CGA-4rx5-w2wr-4j98
- CGA-5g7h-8whc-g7q2
- CGA-5mgm-56g8-pq9w
- CGA-5rmc-qv94-hj33
- CGA-5rpx-c2q3-g4w8
- CGA-624j-qww6-jm29
- CGA-64pc-w7p8-pvw4
- CGA-652q-q8qf-c7x5
- CGA-663q-rvhg-9vcx
- CGA-6p3r-2h97-7w5m
- CGA-6qx3-m893-m54r
- CGA-72f6-2q5f-8269
- CGA-7c48-9p62-72xg
- CGA-7h92-pr45-f9rx
- CGA-7j68-mqv4-mhjr
- CGA-7jx4-jp93-9pxm
- CGA-7m6g-h678-j79x
- CGA-7vx5-pm62-6pqg
- CGA-7xrj-6mgj-w6xh
- CGA-8j8h-6rgv-x95q
- CGA-8qfx-94jj-wmx5
- CGA-98pj-2j4q-9h4v
- CGA-99f8-fpxh-9w2w
- CGA-9g3q-q9hq-926h
- CGA-9hj6-6cp3-6cq5
- CGA-9jm4-m7gg-g7mq
- CGA-c47g-6jj6-wq2r
- CGA-c62j-q4v9-prj4
- CGA-c9r7-7phw-q63h
- CGA-cch8-cr8m-7hmh
- CGA-ccqq-44fq-m4x3
- CGA-cm6f-7c64-695x
- CGA-cv96-g6vv-m377
- CGA-f3x9-m6x6-5r68
- CGA-f5hx-w88w-qqmx
- CGA-f652-gmr3-wj48
- CGA-fp9q-qrv4-gfq5
- CGA-fqwp-rvjx-cqq3
- CGA-fwcg-wf38-mpqr
- CGA-g2mq-q88c-7gqg
- CGA-g7cx-8mjm-w4xw
- CGA-g8c7-g347-qvj6
- CGA-g8x4-jvgh-579c
- CGA-g926-pm32-mcfw
- CGA-gf5q-3f6w-76pr
- CGA-gfw6-rwc5-g793
- CGA-gqj6-w346-42xm
- CGA-gr63-jq7r-jm8g
- CGA-gw65-433g-47g5
- CGA-gxwh-m6qm-57q9
- CGA-h2q5-27xv-xm6x
- CGA-h34j-p9x3-f4wh
- CGA-h34p-xvw5-2q5p
- CGA-h8fh-3qxc-hmmp
- CGA-h946-96xr-x9c6
- CGA-hh8g-63rq-76f7
- CGA-hh97-pr9p-8889
- CGA-hjvg-65cr-rjp4
- CGA-hp8h-wxf4-463x
- CGA-j5p7-qx3v-x6jq
- CGA-j6fj-wgfq-v775
- CGA-j7mw-5r33-xv94
- CGA-j8p5-5cjf-7w7w
- CGA-j8x5-4347-m563
- CGA-jmj9-rx7w-ppx8
- CGA-jr5f-hp5j-8966
- CGA-mcgj-5v9p-pfhm
- CGA-mg79-vqcm-3px8
- CGA-mhgx-c49r-fv7f
- CGA-mmc8-m4ch-5g3c
- CGA-mmcp-32hm-wg22
- CGA-mpxx-jffr-ppm3
- CGA-p224-ghmj-2vg3
- CGA-p6xm-97pf-ghf5
- CGA-p8mm-xxwm-v22x
- CGA-p984-225r-h5w2
- CGA-phgc-m8rc-gx52
- CGA-pqjj-v499-2ppj
- CGA-pr87-8jv6-2pq8
- CGA-prh5-27hw-5q4h
- CGA-pvqv-4783-q68h
- CGA-pw5j-vf84-jqrq
- CGA-q43m-rqg3-539c
- CGA-q442-rg4v-p42r
- CGA-q95j-g27g-cx4g
- CGA-qchp-g8g4-jhw6
- CGA-qf3c-g357-fpr5
- CGA-qm4x-g8x3-r6mw
- CGA-qpgr-gpq3-2rjq
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2026-59894.