ADVISORIES

Vulnerability

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 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.

4 advisories report this vulnerability, across 3 ecosystems.

Medium severity All PyPI 2Debian 1Ubuntu 1

Advisories

  • DEBIAN-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 by supplying malformed TEI blocks with many unmatched…

    CVE-2026-81725 Debian Updated 1 October 2026
  • GHSA-8mpw-7fpc-4gqj

    NLTK: Pl196xCorpusReader has quadratic ReDoS on malformed TEI blocks

    Moderate CVE-2026-81725 PyPI Updated 8 September 2026
  • PYSEC-2026-3752

    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…

    CVE-2026-81725 PyPI Updated 2 September 2026
  • UBUNTU-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 by supplying malformed TEI blocks with many unmatched…

    CVE-2026-81725 Ubuntu Updated 24 November 2026

References