Inefficient Algorithmic Complexity in Natural Language Toolkit - CVE-2026-129232
Published: November 16, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service through sustained CPU exhaustion.
The vulnerability exists due to inefficient algorithmic complexity in NLTK's XMLCorpusView.read_block when processing deeply nested XML, repeatedly rebuilding the full context path with "/".join(context) while searching for a matching element. A remote attacker can supply an XML corpus containing repeated nested "<a>" and "</a>" tags that never match the reader's target specification to trigger quadratic CPU consumption in applications processing attacker-influenced corpus data.