Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. sqlparse
  4. ›
  5. CVE-2026-71491

CVE-2026-71491: sqlparse: Quadratic O(n²) DoS in group_comments

August 17, 2026

A comment-only statement (-- c\n*n) may cause a Denial of Service (DoS).

References

  • github.com/advisories/GHSA-f2ff-p2ww-7p4p
  • github.com/andialbrecht/sqlparse/commit/ef2012a5eeb491e604dea2b00d516904a3830c87
  • github.com/andialbrecht/sqlparse/security/advisories/GHSA-f2ff-p2ww-7p4p
  • nvd.nist.gov/vuln/detail/CVE-2026-71491

Code Behaviors & Features

Detect and mitigate CVE-2026-71491 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.0

Fixed versions

  • 0.6.0

Solution

Upgrade to version 0.6.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-407: Inefficient Algorithmic Complexity

Source file

pypi/sqlparse/CVE-2026-71491.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 21 Aug 2026 00:19:58 +0000.