CVE-2026-80206
NLTK before 3.10.3 contains a regular expression denial of service …
NLTK before 3.10.3 contains a regular expression denial of service (ReDoS) vulnerability in the tgrep module. The _tgrep_node_action function compiles user-supplied regular expressions embedded in /regex/ pattern nodes and executes them via re.search against tree node labels without any validation or timeout. An attacker who controls the tgrep pattern (e.g., via tgrep_positions() or tgrep_compile() exposed to external input) can supply a pattern that triggers catastrophic backtracking, causing indefinite CPU saturation that blocks the Python process.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/nltk/nltk/security/advisories/GHSA-w3v8-gmh9-3wv7
- www.vulncheck.com/advisories/nltk-3.10.2-regular-expression-denial-of-service-via-tgrep
- nvd.nist.gov/vuln/detail/CVE-2026-80206
- github.com/nltk/nltk/commit/0072ea2fb8be22e038a36e887b7061bb6b9339d9
- github.com/nltk/nltk/releases/tag/v3.10.3
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3751.yaml
- github.com/advisories/GHSA-w3v8-gmh9-3wv7
- nvd.nist.gov/vuln/detail/CVE-2026-80206
- cve.org/CVERecord?id=CVE-2026-80206
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.