© 2025-2026 PySpect
First version without a known vulnerability: 3.10.4
NLTK: ZIP package extraction follows in-root hardlinks and overwrites files outside the NLTK data root
Fixed in: 3.10.4
NLTK: AllowlistUnpickler does not deny numpy submodule-local file-I/O sinks
Fixed in: 3.10.4
NLTK corpus-reader view methods bypass the scoped root sandbox via intermediate-directory symlinks
Fixed in: 3.10.4
NLTK incomplete fix: additional JVM/JAR sandbox bypass through unvalidated launcher tokens in java() command arguments
Fixed in: 3.10.4
NLTK: XMLCorpusView comment and CDATA parsing permits quadratic CPU denial of service
Fixed in: 3.10.4
NLTK: Downloader cyclic collection indices cause an infinite closure walk
Fixed in: 3.10.4
NLTK: ARFF_Formatter Injects Weka ARFF Schema Directives via Attacker-Controlled Class Labels
Fixed in: 3.10.4
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in DependencyGraph.tree()/triples()
Fixed in: 3.10.4
Natural Language Toolkit (NLTK): Uncontrolled recursion (crash DoS) in Synset.tree()/acyclic_tree() via WordNet relation traversal
Fixed in: 3.10.4
NLTK: Uncontrolled recursion in CCG lexicon parser causes denial of service via deeply nested category input
Fixed in: 3.10.4
NLTK: Uncontrolled recursion in DependencyGraph traversal causes denial of service via deep dependency chains
Fixed in: 3.10.4
NLTK: Uncontrolled recursion in semantic-logic type parser causes denial of service via nested type strings
Fixed in: 3.10.4
NLTK: Uncontrolled recursion in Tree.fromlist causes denial of service via deeply nested list input
Fixed in: 3.10.4
NLTK: Uncontrolled recursion in Toolbox settings helpers causes denial of service via deeply nested input
Fixed in: 3.10.4
NLTK: Compile-time regex DoS in NLTK search/tokenizer sinks: quadratic regex-engine compile bypasses the match-only timeout
Fixed in: 3.10.4
NLTK: Uncontrolled recursion in WordNet Synset hypernym walkers (max_depth/min_depth/hypernym_paths/hypernym_distances) causes DoS
Fixed in: 3.10.4
NLTK: Quadratic-time DoS in SeekableUnicodeStreamReader.readline on an unterminated corpus line via per-iteration full-buffer rescan
Fixed in: 3.10.4
NLTK: Quadratic CPU exhaustion in NLTK XMLCorpusView.read_block via deeply nested XML corpus tags
Fixed in: 3.10.4
NLTK: StreamBackedCorpusView constructor os.stat leaks out-of-root file existence, size, and mtime bypassing pathsec ENFORCE
Fixed in: 3.10.4
NLTK: Untrusted search path in prover9/mace4 config allows local code execution via relative binary_location
Fixed in: 3.10.4
NLTK dot2img runs Graphviz 'dot' without the trusted-exec chokepoint, enabling local code execution via a writable PATH element
Fixed in: 3.10.4
NLTK: Symlink escape in chat80.sql_query bypasses the pathsec data-root sandbox to read out-of-root SQLite databases
Fixed in: 3.10.4
NLTK: Path Traversal in save_maxent_params / load_maxent_params Allow Arbitrary File READ/WRITE
Fixed in: 3.10.4
NLTK: Quadratic-time CPU denial of service in CCG lexicon parser (fromstring) on wide bracket bodies and operator chains
Fixed in: 3.10.4
NLTK: Quadratic-time CPU denial of service in Tree.chomsky_normal_form right-factor binarization via list.pop(0)
Fixed in: 3.10.4
NLTK: Quadratic-time CPU denial of service in ConllCorpusReader SRL instance builder via nested span rescan
Fixed in: 3.10.4
NLTK: BllipParser passes caller-supplied model paths to the bllipparser C extension with no pathsec check, enabling arbitrary read
Fixed in: 3.10.4
NLTK: Quadratic CPU exhaustion in LegalitySyllableTokenizer.tokenize via unguarded onset reversal loop
Fixed in: 3.10.4
NLTK: Quadratic CPU exhaustion in TreebankWordTokenizer.span_tokenize via list.pop(0) in quote-restore loop
Fixed in: 3.10.4
NLTK: Unbounded CPU consumption in SteppingRecursiveDescentParser.parse() with ambiguous or self-embedding grammars
Fixed in: 3.10.4
NLTK: Symlink escape in YCOECorpusReader lets a psd/pos directory symlink read files outside the corpus root within the data sandbox
Fixed in: 3.10.4
NLTK: WekaClassifier passes an unvalidated caller-controlled model path to the weka JVM, bypassing nltk.pathsec containment
Fixed in: 3.10.4
NLTK: Pl196xCorpusReader has quadratic ReDoS on malformed TEI blocks
Fixed in: 3.10.3
NLTK: ReDoS in nltk.tgrep via unvalidated user-supplied regular expressions
Fixed in: 3.10.3
NLTK: ReDoS in nltk.text.Text.findall() via unvalidated user-supplied regular expressions
Fixed in: 3.10.0
NLTK: Corpus Reader Sandbox Bypass
Fixed in: 3.10.3
NLTK: Corpus readers follow symlinks outside trusted roots despite pathsec enforcement
Fixed in: 3.10.3
NLTK: Allowlisted pickle loaders still permit code execution in current source
Fixed in: 3.10.3
NLTK: Entity-expansion DoS (billion laughs) via remaining raw ElementTree parses
Fixed in: 3.10.3
NLTK: pathsec SSRF protection can be bypassed when a proxy is configured
Fixed in: 3.10.3
NLTK: Unsafe Pickle Deserialization in TransitionParser Allows Remote Code Execution
Fixed in: 3.10.0
NLTK: Symlink-based arbitrary file read in IPIPANCorpusReader, bypasses nltk.pathsec entirely
Fixed in: 3.10.2
NLTK: Symlink-based sandbox bypass in FramenetCorpusReader (bypasses the fix for CVE-2026-54292)
Fixed in: 3.10.2
NLTK: Stable FrameNet and NKJP readers parse outside-root XML
Fixed in: 3.10.0
NLTK: Missing Post-Download Integrity Verification Allows Malicious Package Injection
Fixed in: 3.9.3
NLTK: StreamBackedCorpusView Bypasses pathsec.ENFORCE - Arbitrary Local File Read
Fixed in: 3.10.0
NLTK: FileSystemPathPointer.open() sandbox check is dead code — arbitrary file read via file:// protocol
Fixed in: 3.10.0
NLTK: Symlink escape in CorpusReader allows arbitrary local file read outside the corpus root
Fixed in: 3.9.4
NLTK: Default ENFORCE=False Disables All pathsec Security Controls
Fixed in: 3.10.0
NLTK: SSRF Fail-Open in validate_network_url() via DNS Resolution Failure
Fixed in: 3.10.0
NLTK: Quadratic-time DoS in PorterStemmer via long runs of 'y'
Fixed in: 3.10.3
NLTK: Downloader.download follows hardlinks and overwrites outside-root files
Fixed in: 3.10.3
NLTK: Model-artifact APIs bypass pathsec and touch files outside allowed roots
Fixed in: 3.10.4, 3.10.3
NLTK: Quadratic CPU Exhaustion in `XMLCorpusView._read_xml_fragment()`
Fixed in: 3.10.3
NLTK: Uncontrolled resource consumption in RecursiveDescentParser via ambiguous or left-recursive grammars
Fixed in: 3.10.3
NLTK: Uncontrolled recursion in nltk.featstruct.FeatStructReader causes unhandled RecursionError (DoS) via deeply nested feature-structure input
Fixed in: 3.10.3
NLTK: JVM argument injection bypass via per-call options in the NLTK Stanford wrappers (incomplete fix of CVE-2026-12841)
Fixed in: 3.10.3
NLTK: Uncontrolled search path when invoking the Graphviz 'dot' binary
Fixed in: 3.10.3
NLTK AllowlistUnpickler dotted-name validation bypass allows remote code execution
Fixed in: 3.10.3
NLTK CrubadanCorpusReader path traversal allows arbitrary file disclosure
Fixed in: 3.10.3
NLTK TweetTokenizer vulnerable to denial of service through catastrophic regex backtracking
Fixed in: 3.10.1
nltk: Arbitrary File Read via Path Traversal in nltk.data.load() through Percent-Encoded Sequences
Fixed in: 3.10.0
NLTK network URL validation permits SSRF to RFC 6598 shared-address-space hosts
Fixed in: 3.10.0
NLTK downloader allows cross-package resource and model poisoning
Fixed in: 3.10.0
Natural Language Toolkit (NLTK): DNS-rebinding SSRF filter bypass in nltk.pathsec.urlopen (nltk.download / nltk.data.load) defeats ENFORCE mode
Fixed in: 3.10.0
Natural Language Toolkit (NLTK): ReDoS in NLTK ReviewsCorpusReader FEATURES regex
Fixed in: 3.10.0
Natural Language Toolkit (NLTK): Path Traversal in NKJPCorpusReader leads to Arbitrary File Read and bypasses the nltk.pathsec sandbox (ENFORCE=True)
Fixed in: 3.10.0
Natural Language Toolkit (NLTK) has path traversal in FramenetCorpusReader.frame() that allows arbitrary XML file read, bypassing the nltk.pathsec sandbox (ENFORCE=True)
Fixed in: 3.10.0
NLTK vulnerable to Eval Injection via collocations CLI arguments
Fixed in: 3.9.3
NLTK Stanford wrapper classes execute untrusted JAR files without verification
Fixed in: 3.9.4
Natural Language Toolkit (NLTK): URL-Encoded Path Traversal in nltk.data.load() Allows Arbitrary Local File Read
Fixed in: 3.10.0
NLTK has a Downloader Path Traversal Vulnerability (AFO) - Arbitrary File Overwrite
Fixed in: 3.9.4
Unauthenticated remote shutdown in nltk.app.wordnet_app
Fixed in: 3.9.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in nltk
Fixed in: 3.9.4
Natural Language Toolkit (NLTK) has unbounded recursion in JSONTaggedDecoder.decode_obj() may cause DoS
Fixed in: 3.9.4
NLTK has Arbitrary File Read via Absolute Path Input in nltk.util.filestring()
Fixed in: 3.9.3
NLTK versions <=3.9.2 are vulnerable to arbitrary code execution due to improper input validation in the StanfordSegmenter module. The module dynamically loads external Java .jar files without verification or sandboxing. An attacker can supply or replace the JAR file, enabling the execution of arbitrary Java bytecode at import time. This vulnerability can be exploited through methods such as model poisoning, MITM attacks, or dependency poisoning, leading to remote code execution. The issue arises from the direct execution of the JAR file via subprocess with unvalidated classpath input, allowing malicious classes to execute when loaded by the JVM.
Fixed in: 3.9.3
NLTK has a Path Traversal issue
Fixed in: 3.9.3
NLTK has a Zip Slip Vulnerability
Fixed in: 3.9.3
ntlk unsafe deserialization vulnerability
Fixed in: 3.9
NLTK Vulnerable to REDoS
Fixed in: 3.6.6, 2a50a3edc9d35f57ae42a921c621edc160877f4d
Inefficient Regular Expression Complexity in nltk (word_tokenize, sent_tokenize)
Fixed in: 3.6.6, 1405aad979c6b8080dbbc8e0858f89b2e3690341, 3.6.5
NLTK Vulnerable to REDoS
Fixed in: 3.6.4, 277711ab1dec729e626b27aab6fa35ea5efbd7e6
NLTK Vulnerable To Path Traversal
Fixed in: 3.4.5, f59d7ed8df2e0e957f7f247fe218032abdbe9a10