Skip to main content
PyPI (Python)

nltk Known Vulnerabilities & Fixes

nltk has 68 known security vulnerabilities in PyPI (Python). Upgrade to version 3.10.4 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.

68 Vulnerabilities

Low Immediate Risk

No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.

Recommended safe version: 3.10.4

Upgrading to 3.10.4 or later resolves all 68 known vulnerabilities in nltk. Run: pip install "nltk>=3.10.4"

Is nltk in your project?

Check if you're affected and upgrade to 3.10.4 to stay secure.

68
Total
6
Critical
36
High
25
Medium
1
Low

Security Summary

  • 73 affected version ranges have been identified across these 68 advisories.
  • 100% of known issues have a published fixed version.
  • Highest exploit-probability (EPSS) score for nltk: 2.5%.
  • Remediation: pip install --upgrade nltk

Vulnerabilities

68 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Jun 28, 2024, most recently Nov 19, 2026 (875 days apart).

CVE / GHSASeverity
CVE-2024-39705
ntlk unsafe deserialization vulnerability
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+56 more)
Fixed in
3.9
HIGH
CVE-2026-33231
Unauthenticated remote shutdown in nltk.app.wordnet_app
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+60 more)
Fixed in
3.9.4
HIGH
CVE-2025-14009
NLTK has a Zip Slip Vulnerability
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+59 more)
Fixed in
3.9.3
CRITICAL
CVE-2026-79657
NLTK: Allowlisted pickle loaders still permit code execution in current source
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
CRITICAL
CVE-2026-0847
NLTK has a Path Traversal issue
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+59 more)
Fixed in
3.9.3
HIGH
CVE-2026-0848
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+59 more)
Fixed in
3.9.3
CRITICAL
CVE-2026-33236
NLTK has a Downloader Path Traversal Vulnerability (AFO) - Arbitrary File Overwrite
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+60 more)
Fixed in
3.9.4
HIGH
CVE-2026-79675
NLTK: JVM argument injection bypass via per-call options in the NLTK Stanford wrappers (incomplete fix of CVE-2026-12841)
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
CRITICAL
CVE-2026-72818
NLTK TweetTokenizer vulnerable to denial of service through catastrophic regex backtracking
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+62 more)
Fixed in
3.10.1
HIGH
CVE-2026-128138
NLTK incomplete fix: additional JVM/JAR sandbox bypass through unvalidated launcher tokens in java() command arguments
Affected
3.10.3
Fixed in
3.10.4
CRITICAL
CVE-2026-80205
NLTK: ReDoS in nltk.text.Text.findall() via unvalidated user-supplied regular expressions
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
HIGH
CVE-2026-63312
NLTK: StreamBackedCorpusView Bypasses pathsec.ENFORCE - Arbitrary Local File Read
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
HIGH
CVE-2026-0846
NLTK has Arbitrary File Read via Absolute Path Input in nltk.util.filestring()
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+59 more)
Fixed in
3.9.3
HIGH
CVE-2026-54293
Natural Language Toolkit (NLTK): URL-Encoded Path Traversal in nltk.data.load() Allows Arbitrary Local File Read
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
HIGH
CVE-2026-129222
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
HIGH
CVE-2026-129223
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in Synset.tree()/acyclic_tree() via WordNet relation traversal
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
HIGH
CVE-2026-128139
NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service
Affected
3.10.0, 3.10.1, 3.10.2, 3.10.3 (+17 more)
Fixed in
3.10.4
HIGH
CVE-2026-126299
NLTK: Quadratic-time CPU denial of service in CCG lexicon parser (fromstring) on wide bracket bodies and operator chains
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
HIGH
CVE-2026-126298
NLTK: Quadratic-time CPU denial of service in Tree.chomsky_normal_form right-factor binarization via list.pop(0)
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
HIGH
CVE-2026-126297
NLTK: Quadratic-time CPU denial of service in ConllCorpusReader SRL instance builder via nested span rescan
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
HIGH
CVE-2026-126301
NLTK: Quadratic CPU exhaustion in LegalitySyllableTokenizer.tokenize via unguarded onset reversal loop
Affected
3.10.0, 3.10.1, 3.10.2, 3.10.3 (+17 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-126303
NLTK: Unbounded CPU consumption in SteppingRecursiveDescentParser.parse() with ambiguous or self-embedding grammars
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
HIGH
CVE-2026-129224
NLTK: Uncontrolled recursion in CCG lexicon parser causes denial of service via deeply nested category input
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-129227
NLTK: Uncontrolled recursion in Tree.fromlist causes denial of service via deeply nested list input
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-129232
NLTK: Quadratic CPU exhaustion in NLTK XMLCorpusView.read_block via deeply nested XML corpus tags
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-129228
NLTK: Uncontrolled recursion in Toolbox settings helpers causes denial of service via deeply nested input
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-129231
NLTK: Quadratic-time DoS in SeekableUnicodeStreamReader.readline on an unterminated corpus line via per-iteration full-buffer rescan
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-129226
NLTK: Uncontrolled recursion in semantic-logic type parser causes denial of service via nested type strings
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-129225
NLTK: Uncontrolled recursion in DependencyGraph traversal causes denial of service via deep dependency chains
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-126300
NLTK: Quadratic CPU exhaustion in TreebankWordTokenizer.span_tokenize via list.pop(0) in quote-restore loop
Affected
3.10.0, 3.10.1, 3.10.2, 3.10.3 (+27 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-78681
NLTK: Entity-expansion DoS (billion laughs) via remaining raw ElementTree parses
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
HIGH
CVE-2026-66393
Natural Language Toolkit (NLTK) has unbounded recursion in JSONTaggedDecoder.decode_obj() may cause DoS
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+60 more)
Fixed in
3.9.4
MEDIUM
CVE-2026-81722
NLTK: Quadratic-time DoS in PorterStemmer via long runs of 'y'
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
MEDIUM
CVE-2026-62388
NLTK: Default ENFORCE=False Disables All pathsec Security Controls
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
HIGH
CVE-2026-78683
NLTK: Unsafe Pickle Deserialization in TransitionParser Allows Remote Code Execution
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
CRITICAL
CVE-2026-33230
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in nltk
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+60 more)
Fixed in
3.9.4
MEDIUM
CVE-2026-128140
NLTK: Downloader cyclic collection indices cause an infinite closure walk
Affected
3.10.0, 3.10.1, 3.10.2, 3.10.3 (+10 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-81724
NLTK: Uncontrolled recursion in nltk.featstruct.FeatStructReader causes unhandled RecursionError (DoS) via deeply nested feature-structure input
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
MEDIUM
CVE-2026-79676
NLTK: Corpus readers follow symlinks outside trusted roots despite pathsec enforcement
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
HIGH
CVE-2026-109956
NLTK: WekaClassifier passes an unvalidated caller-controlled model path to the weka JVM, bypassing nltk.pathsec containment
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
HIGH
CVE-2026-80206
NLTK: ReDoS in nltk.tgrep via unvalidated user-supplied regular expressions
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
HIGH
CVE-2026-78682
NLTK: pathsec SSRF protection can be bypassed when a proxy is configured
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
HIGH
CVE-2026-129221
NLTK: ARFF_Formatter Injects Weka ARFF Schema Directives via Attacker-Controlled Class Labels
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-62385
NLTK: Stable FrameNet and NKJP readers parse outside-root XML
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
HIGH
CVE-2026-65915
NLTK: FileSystemPathPointer.open() sandbox check is dead code — arbitrary file read via file:// protocol
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
MEDIUM
CVE-2026-79674
NLTK: Corpus Reader Sandbox Bypass
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
HIGH
CVE-2026-126296
NLTK: Path Traversal in save_maxent_params / load_maxent_params Allow Arbitrary File READ/WRITE
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-81725
NLTK: Pl196xCorpusReader has quadratic ReDoS on malformed TEI blocks
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
MEDIUM
CVE-2026-81723
NLTK: Quadratic CPU Exhaustion in `XMLCorpusView._read_xml_fragment()`
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
MEDIUM
CVE-2026-81726
NLTK: Model-artifact APIs bypass pathsec and touch files outside allowed roots
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4, 3.10.3
HIGH
CVE-2026-63311
NLTK: SSRF Fail-Open in validate_network_url() via DNS Resolution Failure
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
MEDIUM
CVE-2026-12372
NLTK network URL validation permits SSRF to RFC 6598 shared-address-space hosts
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
LOW
CVE-2026-12261
NLTK downloader allows cross-package resource and model poisoning
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
MEDIUM
CVE-2025-71408
NLTK vulnerable to Eval Injection via collocations CLI arguments
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+59 more)
Fixed in
3.9.3
HIGH
CVE-2026-12252
NLTK Stanford wrapper classes execute untrusted JAR files without verification
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+60 more)
Fixed in
3.9.4
HIGH
CVE-2026-70626
NLTK: Symlink escape in CorpusReader allows arbitrary local file read outside the corpus root
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+60 more)
Fixed in
3.9.4
HIGH
CVE-2026-81727
NLTK: Downloader.download follows hardlinks and overwrites outside-root files
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
MEDIUM
CVE-2026-78680
NLTK: Uncontrolled search path when invoking the Graphviz 'dot' binary
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
HIGH
CVE-2026-128134
NLTK dot2img runs Graphviz 'dot' without the trusted-exec chokepoint, enabling local code execution via a writable PATH element
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
HIGH
CVE-2026-129230
NLTK: Uncontrolled recursion in WordNet Synset hypernym walkers (max_depth/min_depth/hypernym_paths/hypernym_distances) causes DoS
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
MEDIUM
CVE-2026-129234
NLTK: Untrusted search path in prover9/mace4 config allows local code execution via relative binary_location
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+65 more)
Fixed in
3.10.4
HIGH
CVE-2026-12259
NLTK: Missing Post-Download Integrity Verification Allows Malicious Package Injection
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.9.3
MEDIUM
CVE-2026-12072
Natural Language Toolkit (NLTK): Path Traversal in NKJPCorpusReader leads to Arbitrary File Read and bypasses the nltk.pathsec sandbox (ENFORCE=True)
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
HIGH
CVE-2026-12061
Natural Language Toolkit (NLTK): ReDoS in NLTK ReviewsCorpusReader FEATURES regex
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
HIGH
CVE-2026-12243
nltk: Arbitrary File Read via Path Traversal in nltk.data.load() through Percent-Encoded Sequences
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
HIGH
CVE-2026-12075
Natural Language Toolkit (NLTK): DNS-rebinding SSRF filter bypass in nltk.pathsec.urlopen (nltk.download / nltk.data.load) defeats ENFORCE mode
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
HIGH
CVE-2026-12074
Natural Language Toolkit (NLTK) has path traversal in FramenetCorpusReader.frame() that allows arbitrary XML file read, bypassing the nltk.pathsec sandbox (ENFORCE=True)
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+61 more)
Fixed in
3.10.0
HIGH
CVE-2026-12876
NLTK: Uncontrolled resource consumption in RecursiveDescentParser via ambiguous or left-recursive grammars
Affected
0.8, 0.9, 0.9.3, 0.9.4 (+64 more)
Fixed in
3.10.3
MEDIUM

About This Data

Vulnerability data for nltk is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.

CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Related PyPI (Python) Packages

Other packages in this ecosystem, ranked by shared vulnerabilities where available.

Check Your Dependencies

Scan your project to check if you're using a vulnerable version of nltk.

Data from OSV DatabaseUpdated daily200K+ vulnerabilities indexed