SQL Injection Vulnerability in NLTK Natural Language Toolkit
CVE-2026-129221

5.4MEDIUM

Key Information:

Vendor

Nltk

Status
Vendor
CVE Published:
19 November 2026

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

References

CVSS V3.1

Score:
5.4
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.