Uncontrolled Recursion in Natural Language Toolkit - CVE-2026-129222

 

Uncontrolled Recursion in Natural Language Toolkit - CVE-2026-129222

Published: November 17, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service by crashing applications processing dependency graphs.

The vulnerability exists due to uncontrolled recursion in NLTK's DependencyGraph.tree() and triples() when traversing dependency graphs without depth limits or effective cycle detection. A remote attacker can supply a Malt-TAB or CoNLL file containing thousands of chained tokens for traversal, or introduce cycles through direct graph manipulation, to trigger an unhandled RecursionError and crash the processing request, worker, or script.


Affected software

Natural Language Toolkit

How to mitigate CVE-2026-129222

Install security update from vendor's website.

Natural Language Toolkit - update to 3.10.4

External References

Related Security Bulletins