CVE-2026-126300
NLTK from 3.2.5 before 3.10.4 contains an algorithmic complexity …
NLTK from 3.2.5 before 3.10.4 contains an algorithmic complexity vulnerability in TreebankWordTokenizer.span_tokenize that allows remote attackers to cause quadratic CPU consumption through repeated list.pop(0) calls. Attackers can submit long runs of double-quote characters to services span-tokenizing untrusted text, exhausting a CPU core and degrading availability.
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-ffr9-mgrr-wcvr
- www.vulncheck.com/advisories/nltk-from-3.2.5-before-3.10.4-cpu-exhaustion-via-treebankword
- nvd.nist.gov/vuln/detail/CVE-2026-126300
- github.com/nltk/nltk/pull/3895
- github.com/nltk/nltk/commit/e20c40e26ec9306de885703f6e53250695f1f49b
- github.com/nltk/nltk/releases/tag/v3.10.4
- github.com/advisories/GHSA-ffr9-mgrr-wcvr
- nvd.nist.gov/vuln/detail/CVE-2026-126300
- cve.org/CVERecord?id=CVE-2026-126300
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.