Pull Request Overview
- Opened on August 17, 2026
- Status Open
- Commit count 1 with first commit August 17, 2026
Total Delta
Open Days
Test Delta
How long has this pull request spent in each phase of its lifecycle?
Data pending calculation for pull request
Bump sqlparse from 0.5.5 to 0.6.0
Bumps sqlparse from 0.5.5 to 0.6.0.
Changelog
Sourced from sqlparse's changelog.
Release 0.6.0 (Aug 13, 2026)
Notable Changes
- Drop support for Python 3.8 and 3.9. Python 3.10+ is now required.
- IMPORTANT: Fixes a potential denial of service attack (DOS) in the lexer,
which consumed CPU quadratically on statements containing many unclosed
dollar-quoted literals or multiline comments (CVE-2026-59893). See the
security advisory for details:
https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-prg7-hcfm-mfcr
The vulnerability was discovered by EQSTLab, min8282 and 7thpark.
Thanks for reporting!- IMPORTANT: Fixes a potential denial of service attack (DOS) when grouping
deeply nested or very wide statements. Building a token group re-read the
whole group on every step, so a small statement could keep a worker busy
for a long time (CVE-2026-54284, pr848 by alhudz and tonghuaroot).- IMPORTANT: Fixes a potential denial of service attack (DOS) in
format(sql, reindent=True), which consumed CPU quadratically on long
lists of tuples. See the security advisory for details:
https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-cfqr-cjx5-5jcm- IMPORTANT: Fixes a potential denial of service attack (DOS) on statements
that consist only of comments (CVE-2026-71491). See the security advisory
for details:
https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-f2ff-p2ww-7p4p
The vulnerability was discovered by@βsanktjodel. Thanks for reporting!- IMPORTANT: Backslashes are now escaped in the
pythonandphpoutput
formats. Without escaping, SQL containing a backslash could break out of
the generated string literal (CVE-2026-59894). See the security advisory
for details:
https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-3496-9g83-7v6x
The vulnerability was discovered by@β7thParkk. Thanks for reporting!Enhancements
- Modernize type annotations in top-level API functions using PEP 585 and
PEP 604 syntax.END FORandEND CASEare now recognized as keywords.Bug Fixes
- Statement splitting was rewritten on a stack-based architecture. This fixes
splitting of statements with nested BEGIN ... END blocks (issue845).- Fix function grouping being skipped in
CREATE TABLE ... AS SELECT
statements when theaskeyword is lowercase (pr867 by Osamaali313).- Recognize
ROW_FORMATas a keyword so thatALTER TABLE ... ROW_FORMAT=...
no longer merges the table name and the option into a single identifier
(issue773, pr860 by apoorvdarshan).- Recognize
MATERIALIZEDas a keyword so it is parsed and formatted
consistently inCREATE MATERIALIZED VIEWstatements (issue752, pr854 by
<!-- raw HTML omitted -->
... (truncated)
Commits
-
2f40da9Update version number. -
5753f15Align the changelog entries for this release with previous ones -
b9588d9Unify the benchmark scripts on a shared harness -
519e416Pair comment/dollar-quote delimiters at the lexer position -
a51df6dMeasure reindent offsets backwards to avoid quadratic CPU use -
73d9ccdUpdate CHANGELOG -
d1d8060Fix uncontrolled CPU consumption (ReDoS) in the lexer's handling of dollar-qu... -
ef2012aFix quadratic DoS in group_comments (GHSA-f2ff-p2ww-7p4p) -
26112ddUpdate Changelog. -
53ff44bEscape backslashes in output formatters. - Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/chaoss/grimoirelab/network/alerts).
No comments have been left on this PR.