CVE-2026-81722: NLTK · Quadratic-time DoS in PorterStemmer via long runs of 'y'
Affects gptlineSource GCVE Database
Not known to be exploited · CVSS 6.9 Medium : upgrade to 1.0.8_23 when convenient.
Data as of 1 Nov 2026, 22:58 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.0.8_23
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Nov 2026.
What to do
Upgrade gptline to 1.0.8_23.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewgptlinepkg:brew/gptlineOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available for gptline that addresses this quadratic-time DoS by optimizing the consonant/vowel classification to linear time. Users should apply the official fix to versions >=1.0.8 and <1.0.8_23. No additional mitigation is required beyond applying the patch.
Description
The NLTK PorterStemmer's stem() function has a quadratic-time denial-of-service vulnerability triggered by tokens containing long runs of the letter 'y'. This causes excessive CPU consumption when processing such tokens, impacting availability but not confidentiality or integrity. The issue arises from an iterative function that repeatedly walks backward over runs of 'y's, resulting in O(n^2) complexity. A fix is available to optimize this to linear time.
References
- github.com/nltk/nltk/security/advisories/GHSA-ww6m-cw3f-q94g (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-81722 (opens in a new tab)
- github.com/nltk/nltk/commit/7808692d451b962711005d954859bb83aabcf8fa (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- github.com/nltk/nltk/releases/tag/v3.10.3 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3738.yaml (opens in a new tab)
- vulncheck.com/advisories/nltk-porterstemmer-before-3.10.3-quadratic-time-dos (opens in a new tab)