CVE-2026-81725
NLTK before 3.10.3 contains a regular expression denial of service …
NLTK before 3.10.3 contains a regular expression denial of service vulnerability in Pl196xCorpusReader that allows attackers to cause quadratic CPU consumption by supplying malformed TEI blocks with many unmatched opening tags. Attackers can exploit lazy regex patterns in the read_block method through public APIs like words() and tagged_words() to force repeated rescans and achieve near-quadratic runtime growth.
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-8mpw-7fpc-4gqj
- www.vulncheck.com/advisories/nltk-before-3.10.3-regular-expression-denial-of-service-via-p
- nvd.nist.gov/vuln/detail/CVE-2026-81725
- github.com/nltk/nltk/commit/7808692d451b962711005d954859bb83aabcf8fa
- github.com/nltk/nltk/releases/tag/v3.10.3
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3752.yaml
- github.com/advisories/GHSA-8mpw-7fpc-4gqj
- nvd.nist.gov/vuln/detail/CVE-2026-81725
- cve.org/CVERecord?id=CVE-2026-81725
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.