VYPR

Sqlparse

by Andialbrecht

pypi: sqlparse

Source repositories

CVEs (7)

  • CVE-2026-71491HigAug 17, 2026
    risk 0.50cvss epss 0.00

    sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, group_comments in sqlparse/engine/grouping.py repeatedly rescans comment-only statements before the MAX_GROUPING_TOKENS guard, causing quadratic CPU consumption through sqlparse.parse() and…

  • CVE-2026-54284HigAug 17, 2026
    risk 0.50cvss epss 0.00

    sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, TokenList construction and string conversion in sqlparse/sql.py repeatedly flatten nested token subtrees constructed by group_parenthesis and group_case, causing quadratic CPU consumption through…

  • CVE-2026-59893HigAug 17, 2026
    risk 0.42cvss 7.5epss 0.00

    sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, SQL_REGEX in sqlparse/keywords.py and the per-position loop in sqlparse/lexer.py repeatedly scan unmatched dollar-quoted literal and multiline-comment delimiters, causing quadratic CPU consumption through…

  • CVE-2024-4340HigApr 30, 2024
    risk 0.42cvss 7.5epss 0.03

    Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.

  • CVE-2021-32839HigSep 20, 2021
    risk 0.42cvss 7.5epss 0.02

    sqlparse is a non-validating SQL parser module for Python. In sqlparse versions 0.4.0 and 0.4.1 there is a regular Expression Denial of Service in sqlparse vulnerability. The regular expression may cause exponential backtracking on strings containing many repetitions of '\r\n'…

  • CVE-2026-59894MedAug 17, 2026
    risk 0.33cvss epss 0.00

    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…

  • CVE-2023-30608MedApr 18, 2023
    risk 0.29cvss 5.5epss 0.01

    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…