SQL Injection Vulnerability in NLTK Natural Language Toolkit
CVE-2026-129221
5.4MEDIUM
What is CVE-2026-129221?
The Natural Language Toolkit (NLTK) is a widely used suite of Python modules designed for Natural Language Processing. Prior to version 3.10.4, a vulnerability exists in the way NLTK handles class labels in Weka ARFF format. Specifically, the nltk.classify.weka.ARFF_Formatter writes unvalidated, attacker-controlled class labels into the ARFF file's @ATTRIBUTE '-label-' declaration. This lack of proper formatting could potentially lead to the manipulation of the ARFF schema or records, resulting in corrupt classifier input, loss of data integrity, or failures during processing. This vulnerability has been addressed in version 3.10.4.
Affected Version(s)
nltk < 3.10.4
