sqlparse vulnerabilities
A non-validating SQL parser.
- Registry
- PyPI
- Latest
- 0.6.1
- License
- BSD License
9 known advisories
The latest version, 0.6.1, is not affected by any of them. Projects on older versions may be.
pip install 'sqlparse>=0.6.1'Is your project on an affected sqlparse?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for sqlparse
sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption
- Affected
- <0.6.0
- Fixed in
- 0.6.0
sqlparse: Inefficient Regex Handling of Dollar-Quoted SQL Literals Leads to ReDoS (Denial of Service)
- Affected
- <0.6.0
- Fixed in
- 0.6.0
sqlparse: TokenList.__init__ materializes O(subtree) value per group, causing CPU DoS before depth/token caps trigger
- Affected
- <0.6.0
- Fixed in
- 0.6.0
sqlparse: Quadratic O(n²) DoS in group_comments
- Affected
- <0.6.0
- Fixed in
- 0.6.0
sqlparse: Generated Python and PHP snippets allow SQL string breakout through unescaped backslashes
- Affected
- <0.6.0
- Fixed in
- 0.6.0
sqlparse: formatting list of tuples leads to denial of service
- Affected
- <0.5.4
- Fixed in
- 0.5.4
sqlparse parsing heavily nested list leads to Denial of Service
- Affected
- <0.5.0
- Fixed in
- 0.5.0
sqlparse contains a regular expression that is vulnerable to Regular Expression Denial of Service
- Affected
- >=0.1.15 <0.4.4
- Fixed in
- 0.4.4
StripComments filter contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service)
- Affected
- >=0.4.0 <0.4.2
- Fixed in
- 0.4.2
Is your sqlparse version vulnerable?
Which of your client projects still run an old sqlparse?
NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.
Other PyPI packages
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.