Infinite loop in Natural Language Toolkit - CVE-2026-128140

 

Infinite loop in Natural Language Toolkit - CVE-2026-128140

Published: November 17, 2026


Vulnerability identifier: #VU166497
CSH Severity: Medium
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-128140
CWE-ID: CWE-835
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service through unbounded CPU and memory consumption in the Natural Language Toolkit downloader.

The vulnerability exists due to missing cycle detection in nltk.downloader.Downloader._update_index when computing recursive package closures from collection references in an index XML document. A remote attacker can serve an index containing self-referencing collections such as <collection id="a"><item ref="a"/></collection> or mutually referencing collections at a URL the victim configures and uses to trigger an infinite loop with unbounded queue growth.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-128140

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins