CVE-2026-126299
NLTK before 3.10.4 contains a denial of service vulnerability in …
NLTK before 3.10.4 contains a denial of service vulnerability in the CCG lexicon parser fromstring that allows remote attackers to exhaust CPU by supplying wide inputs. Attackers can submit lexicon text with long flat bracket bodies or operator chains, triggering quadratic string re-slicing in matchBrackets and augParseCategory that blocks worker threads.
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-89p3-fcch-88ph
- www.vulncheck.com/advisories/nltk-before-3.10.4-quadratic-time-denial-of-service-via-ccg-l
- nvd.nist.gov/vuln/detail/CVE-2026-126299
- github.com/nltk/nltk/pull/3944
- github.com/nltk/nltk/commit/0bb5b947bd235b950cf2f90e893a498e16da0fe3
- github.com/nltk/nltk/commit/cf12a5e6a
- github.com/nltk/nltk/releases/tag/v3.10.4
- github.com/advisories/GHSA-89p3-fcch-88ph
- nvd.nist.gov/vuln/detail/CVE-2026-126299
- cve.org/CVERecord?id=CVE-2026-126299
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.