VDB
Sign up
HIGH7.5

PYSEC-2023-87

Quick fix

PYSEC-2023-87 — sqlparse: upgrade to the fixed version with the command below.

pip install --upgrade 'sqlparse>=c457abd5f097dd13fb21543381e7cfafe7d31cfb'

Details

sqlparse is a non-validating SQL parser module for Python. In affected versions the SQL parser contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service). This issue was introduced by commit `e75e358`. The vulnerability may lead to Denial of Service (DoS). This issues has been fixed in sqlparse 0.4.4 by commit `c457abd5f`. Users are advised to upgrade. There are no known workarounds for this issue.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/sqlparse
Introduced in: 0Fixed in: c457abd5f097dd13fb21543381e7cfafe7d31cfb
Fixpip install --upgrade 'sqlparse>=c457abd5f097dd13fb21543381e7cfafe7d31cfb'

References