CVE-2026-129221: NLTK · ARFF_Formatter Injects Weka ARFF Schema Directives via Attacker-Controlled Class Labels
Affects nltkSource GCVE Database
Not known to be exploited · CVSS 5.4 Medium : upgrade to 3.10.4 when convenient.
Data as of 20 Nov 2026, 00:28 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.4 |
|---|
- Patch
- Available – fixed in 3.10.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 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 19 Nov 2026.
What to do
Upgrade nltk to 3.10.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPInltk | 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 fix for this vulnerability has been merged into the NLTK codebase and is included starting with version 3.10.4. Users should upgrade to NLTK version 3.10.4 or later to ensure ARFF label injection is properly sanitized. Until the fixed version is released and adopted, avoid using untrusted or attacker-controlled data as class labels in WekaClassifier.train() or ARFF_Formatter.from_train().
Description
NLTK's ARFF_Formatter component improperly handles class labels when generating Weka ARFF files, allowing attacker-controlled labels to inject arbitrary ARFF schema directives. This occurs because class labels are embedded without escaping, enabling injection of ARFF metacharacters that can alter the ARFF file structure. The vulnerability affects any application using WekaClassifier.train() or ARFF_Formatter.from_train() with untrusted training data. A fix has been merged but not yet released as of the latest information.
References
- github.com/nltk/nltk/security/advisories/GHSA-9ffx-rrgx-mhgx (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-129221 (opens in a new tab)
- github.com/nltk/nltk/pull/3768 (opens in a new tab)
- github.com/nltk/nltk/commit/56031eabc1ac6e5a109cb78bb18d10e0b7589594 (opens in a new tab)
- github.com/nltk/nltk (opens in a new tab)
- github.com/nltk/nltk/releases/tag/v3.10.4 (opens in a new tab)