Natural Language Toolkit (NLTK): Path Traversal in NKJPCorpusReader leads to Arbitrary File Read and bypasses the nlt...

Date Jul 31, 2026
Type Vendor advisory
Signal High-risk advisory
Vendor / Product PyPI ยท nltk
CVE CVE-2026-12072
High-risk advisory CVE-2026-12072

Summary

Natural Language Toolkit (NLTK): Path Traversal in NKJPCorpusReader leads to Arbitrary File Read and bypasses the nltk.pathsec sandbox (ENFORCE=True)

Why it matters

GitHub has published a reviewed security advisory for nltk. Prioritize it with other application dependency updates.

Operator check

Check whether nltk is present in application dependency manifests, lockfiles, or build images. Review the GitHub advisory and upgrade to a patched version where available.

Sources

PatchBrief uses public sources. It does not scan environments, verify exposure, or replace vendor guidance.