Skip to content

Commit fe6c158

Browse files
pouwerkerkdbaty
authored andcommitted
Allow sqlparse 0.6.x
sqlparse 0.6.0 (2026-08-13) fixes several denial-of-service issues (CVE-2026-59893, CVE-2026-54284, CVE-2026-71491) and a string-escaping bug (CVE-2026-59894). Its only other notable change is dropping Python 3.8/3.9, which pgcli no longer supports either. The <0.6 cap prevented users from installing the fixed release; widen it to <0.7. The full test suite gives identical results on sqlparse 0.5.4 and 0.6.0 (2612 passed, 117 skipped, 1 xfailed, 1 xpassed).
1 parent 17135da commit fe6c158

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎AUTHORS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ Contributors:
153153
* Tommi Kyntölä (kynde)
154154
* Diego
155155
* Chris (ChrisJr404)
156+
* Pieter Ouwerkerk (pouwerkerk)
156157

157158
Creator:
158159
--------

‎changelog.rst‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Bug fixes:
77
* Fix ``TypeError: cannot use a string pattern on a bytes-like object`` when
88
completion metadata comes back as bytes (e.g. ``SQL_ASCII`` client encoding).
99
* Suggest columns, not datatypes, after a column literally named ``type`` in a ``SELECT`` list.
10+
* Allow ``sqlparse`` 0.6.x. sqlparse 0.6.0 fixes several denial-of-service
11+
issues (CVE-2026-59893, CVE-2026-54284, CVE-2026-71491) and a string-escaping
12+
bug (CVE-2026-59894); the previous ``<0.6`` cap prevented users from
13+
installing the fixed release.
1014

1115
Features:
1216
---------

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies = [
3232
"prompt_toolkit>=2.0.6,<4.0.0",
3333
"psycopg >= 3.0.14; sys_platform != 'win32'",
3434
"psycopg-binary >= 3.0.14; sys_platform == 'win32'",
35-
"sqlparse >=0.3.0,<0.6",
35+
"sqlparse >=0.3.0,<0.7",
3636
"configobj >= 5.0.6",
3737
"cli_helpers[styles] >= 2.4.0",
3838
# setproctitle is used to mask the password when running `ps` in command line.

0 commit comments

Comments
 (0)