Improper Neutralization of Special Elements in Output Used by a Downstream Component in Natural Language Toolkit - CVE-2026-129221

 

Improper Neutralization of Special Elements in Output Used by a Downstream Component in Natural Language Toolkit - CVE-2026-129221

Published: November 17, 2026


Vulnerability identifier: #VU166496
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-129221
CWE-ID: CWE-74
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to corrupt generated ARFF schemas and training data or disrupt classifier training.

The vulnerability exists due to missing ARFF quoting and escaping in Natural Language Toolkit's ARFF_Formatter.header_section() when embedding attacker-controlled class labels into nominal attribute declarations. A remote user can supply training labels containing }, newline characters, @ATTRIBUTE, @DATA, and % through WekaClassifier.train() or ARFF_Formatter.from_train() to escape the label list and inject schema and data directives.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-129221

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins