ThinkFacility Sign in
  1. Home
  2. Security
  3. Python package (nltk)
HighPython package (nltk)

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 have
pip show nltk

Update

pip
pip install --upgrade "nltk>=3.10.4"
uv
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.

Sources