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

CVE-2026-81725: NLTK: Pl196xCorpusReader has quadratic ReDoS on malformed TEI blocks

September 8, 2026

Pl196xCorpusReader still parses whole TEI blocks with multiple lazy regexes over attacker-controlled text. A malformed file with many opening tags and no matching closing tags forces repeated rescans and produces quadratic CPU growth in public reader APIs.

References

  • github.com/advisories/GHSA-8mpw-7fpc-4gqj
  • github.com/nltk/nltk/commit/7808692d451b962711005d954859bb83aabcf8fa
  • github.com/nltk/nltk/releases/tag/v3.10.3
  • github.com/nltk/nltk/security/advisories/GHSA-8mpw-7fpc-4gqj
  • github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3752.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-81725
  • www.vulncheck.com/advisories/nltk-before-3.10.3-regular-expression-denial-of-service-via-pl196xcorpusreader

Code Behaviors & Features

Detect and mitigate CVE-2026-81725 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 3.10.3

Fixed versions

  • 3.10.3

Solution

Upgrade to version 3.10.3 or above.

Impact 3.7 LOW

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

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity
  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/nltk/CVE-2026-81725.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 22 Sep 2026 12:19:11 +0000.