NetSight
medium6.3

CVE-2026-81725

NLTK before 3.10.3 contains a regular expression denial of service vulnerability in Pl196xCorpusReader that allows attackers to cause quadratic CPU consumption…

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
pipnltk<= 3.10.23.10.3

Affected products

VendorProductAffected versions
NltkNltk
before 3.10.3

Weakness classification

References