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

CVE-2026-80206: NLTK: ReDoS in nltk.tgrep via unvalidated user-supplied regular expressions

September 8, 2026

The NLTK tgrep module accepts user-supplied regular expressions and passes them to the Python re engine without a timeout or validation, enabling catastrophic backtracking (ReDoS). Applications that expose the tgrep API to external input are vulnerable to a single-request denial of service that blocks the Python process indefinitely.

References

  • github.com/advisories/GHSA-w3v8-gmh9-3wv7
  • github.com/nltk/nltk/commit/0072ea2fb8be22e038a36e887b7061bb6b9339d9
  • github.com/nltk/nltk/releases/tag/v3.10.3
  • github.com/nltk/nltk/security/advisories/GHSA-w3v8-gmh9-3wv7
  • github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3751.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-80206
  • www.vulncheck.com/advisories/nltk-3.10.2-regular-expression-denial-of-service-via-tgrep

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.10.3

Fixed versions

  • 3.10.3

Solution

Upgrade to version 3.10.3 or above.

Impact 5.9 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

pypi/nltk/CVE-2026-80206.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:18 +0000.