ADVISORIES

Vulnerability

CVE-2026-81722

nltk PorterStemmer in versions <= 3.10.2 (fixed in 3.10.3) contains an inefficient-algorithmic-complexity denial of service in PorterStemmer.stem(). The _is_consonant() helper walks backward over the entire run of trailing 'y' characters on every call, and _measure() invokes it for each stem position, causing O(n^2) behavior. A single ~20-50 KB untrusted token consisting of a long run of the letter 'y' followed by a matching suffix (e.g., 'ness') can pin a CPU core for seconds to minutes, causing availability impact.

7 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • CGA-456m-4mx5-jcph
    CVE-2026-81722 ChainguardWolfi Updated 5 November 2026
  • CGA-93px-wgr6-h68g
    CVE-2026-81722 ChainguardWolfi Updated 5 November 2026
  • CGA-g58w-7xcj-rgf2
    CVE-2026-81722 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-81722

    nltk PorterStemmer in versions <= 3.10.2 (fixed in 3.10.3) contains an inefficient-algorithmic-complexity denial of service in PorterStemmer.stem(). The _is_consonant() helper walks backward over the entire run of…

    CVE-2026-81722 Debian Updated 1 October 2026
  • GHSA-ww6m-cw3f-q94g

    NLTK: Quadratic-time DoS in PorterStemmer via long runs of 'y'

    Moderate CVE-2026-81722 PyPI Updated 10 September 2026
  • PYSEC-2026-3738

    nltk PorterStemmer in versions <= 3.10.2 (fixed in 3.10.3) contains an inefficient-algorithmic-complexity denial of service in PorterStemmer.stem(). The _is_consonant() helper walks backward over the entire run of…

    CVE-2026-81722 PyPI Updated 1 September 2026
  • UBUNTU-CVE-2026-81722

    nltk PorterStemmer in versions <= 3.10.2 (fixed in 3.10.3) contains an inefficient-algorithmic-complexity denial of service in PorterStemmer.stem(). The _is_consonant() helper walks backward over the entire run of…

    CVE-2026-81722 Ubuntu Updated 2 September 2026

References