Recursive Depth Limit Vulnerability in Natural Language Toolkit by NLTK
CVE-2026-129223
7.5HIGH
What is CVE-2026-129223?
The Natural Language Toolkit (NLTK) contains a vulnerability that allows for excessive recursion depth when processing specific WordNet-format lexical resources. Prior to version 3.10.4, certain operations involving WordNet Synset traversals lacked a depth-bound check, enabling attackers to craft custom resources that could lead to system crashes. While the bundled WordNet 3.0 corpus does not reach this threshold, adopted external resources could exploit this flaw. The issue has been addressed in version 3.10.4, reinforcing stability against improperly structured lexical data.
Affected Version(s)
nltk < 3.10.4
