Infinite loop in Natural Language Toolkit - CVE-2026-128140
Published: November 17, 2026
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.