Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. nltk
  4. ›
  5. CVE-2026-81722

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

September 2, 2026

nltk.stem.PorterStemmer.stem() – a ubiquitous public API applied to arbitrary, often untrusted, tokens – runs in O(n^2) time on a token containing a long run of the letter ‘y’, letting a single ~20-50 KB token pin a CPU core (CWE-407).

References

  • github.com/advisories/GHSA-ww6m-cw3f-q94g
  • github.com/nltk/nltk/commit/7808692d451b962711005d954859bb83aabcf8fa
  • github.com/nltk/nltk/releases/tag/v3.10.3
  • github.com/nltk/nltk/security/advisories/GHSA-ww6m-cw3f-q94g
  • github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3738.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-81722
  • www.vulncheck.com/advisories/nltk-porterstemmer-before-3.10.3-quadratic-time-dos

Code Behaviors & Features

Detect and mitigate CVE-2026-81722 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.10.3

Fixed versions

  • 3.10.3

Solution

Upgrade to version 3.10.3 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-407: Inefficient Algorithmic Complexity

Source file

pypi/nltk/CVE-2026-81722.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 05 Sep 2026 12:16:42 +0000.