home / blog

2026-11-23 · high

CVE-2026-128139: NLTK Vulnerability Causes Denial of Service

NLTK vulnerable to DOS due to quadratic CPU consumption with large comments and CDATA. Patch 3.10.4 available.

CVE-2026-128139: NLTK Vulnerability Causes Denial of Service

The CVE-2026-128139 vulnerability affects the NLTK (Natural Language Toolkit), a suite of Python modules for natural language processing. The bug is located in the XMLCorpusView._read_xml_fragment method, which, when processing files with large comments or CDATA sections, causes excessive quadratic CPU consumption. This can lead to denial of service in applications using NLTK to process external data.

The vulnerability's impact is rated as high with a CVSS score of 7.5. The National Vulnerability Database published the advisory on November 19, 2026. Technical signals on GitHub confirm the attack pattern, showing how a 200KB file might take 1.37 seconds on the vulnerable version versus 0.04 seconds on the fixed one. This difference highlights the patch's importance.

Immediate defense consists of updating NLTK to version 3.10.4 or higher, which fixes the issue. It is also recommended to rigorously validate input data in applications using NLTK to avoid processing potentially malicious content. Organizations should monitor systems processing large amounts of text for performance anomalies that might be related to this vulnerability.

At a glance

What
Vulnerability in XMLCorpusView._read_xml causes quadratic CPU consumption with corpus files containing large comments or CDATA
Severity
High (CVSS 7.5)
Affected versions
3.6 - 3.10.3
Fix
3.10.4
Status
Published November 19, 2026
Action
Immediately update to version 3.10.4

Sources: NVD, CVE-2026-128139

← All articles