CVE-2026-129221: NLTK: ARFF_Formatter Injects Weka ARFF Schema Directives via Attacker-Controlled Class Labels

Published Nov 19, 2026
·
Updated

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. Prior to 3.10.4, nltk.classify.weka.ARFFFormatter writes attacker-controlled class labels into the Weka ARFF @ATTRIBUTE '-label-' declaration without safely formatting the label tokens. Crafted labels can alter the generated ARFF schema or records, corrupting classifier input and causing integrity loss or processing failure. This issue is fixed in version 3.10.4.

Affected Software

1 affected component
pypi/nltk<3.10.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.10.4

Event History

Nov 19, 2026
CVE Published
via MITRE·05:15 PM
Data Sourced
via MITRE·05:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using NLTK versions prior to 3.10.4 are affected when they use nltk.classify.weka.ARFF_Formatter to generate Weka ARFF data from attacker-controlled class labels.

2

What does an attacker need to exploit this issue?

An attacker needs the ability to supply or influence class-label values that are passed to ARFF_Formatter. The crafted labels can modify the generated ARFF schema or records.

3

What is the impact of a successful exploit?

A successful exploit can corrupt classifier input, causing integrity loss or processing failure. The provided data does not indicate confidentiality impact.

4

How can the issue be remediated?

Upgrade NLTK to version 3.10.4, which fixes the unsafe formatting of class labels in the Weka ARFF attribute declaration.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203