NLTK 3.10.3 and earlier: five flaws let crafted text or corpora stall or leak your app, update now
Python developers whose services run NLTK parsers or corpus readers on text, grammars or corpus files that other people supply.
How to fix it
You haveUpdate to
<= 3.10.3→3.10.4
Check your version
Which version you havepip show nltk
Update
pippip install --upgrade "nltk>=3.10.4"
uv add "nltk>=3.10.4"
Four flaws let crafted input pin a CPU core in NLTK's CCG lexicon parser, chomsky_normal_form, the CoNLL SRL reader and the stepping recursive-descent parser. The fifth, in the YCOE corpus reader on 3.10.0 and later, lets a planted symlink read other files in your NLTK data folders. The fix shipped in 3.10.4 on October 21.