CVE-2026-126301
NLTK from 3.6 before 3.10.4 contains an algorithmic complexity …
NLTK from 3.6 before 3.10.4 contains an algorithmic complexity vulnerability in LegalitySyllableTokenizer.tokenize that allows remote attackers to exhaust CPU by supplying long all-vowel tokens. Attackers can submit a token such as a long run of vowels, causing the unguarded onset reversal loop to perform quadratic work and deny service to syllabification components.
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-gpwc-27cw-rh9r
- www.vulncheck.com/advisories/nltk-from-3.6-before-3.10.4-quadratic-cpu-exhaustion-via-lega
- nvd.nist.gov/vuln/detail/CVE-2026-126301
- github.com/nltk/nltk/pull/3895
- github.com/nltk/nltk/commit/78781ba4575d536fb1540897f27baca0fb40617c
- github.com/nltk/nltk/commit/e20c40e26ec9306de885703f6e53250695f1f49b
- github.com/nltk/nltk/releases/tag/v3.10.4
- github.com/advisories/GHSA-gpwc-27cw-rh9r
- nvd.nist.gov/vuln/detail/CVE-2026-126301
- cve.org/CVERecord?id=CVE-2026-126301
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.