PRIMARY-SOURCE REVIEW · 2026-11-14T09:00:00+09:00

NLTK: 5 canonical advisories for C-extension path bypass, corpus symlinks and parser CPU exhaustion

5 canonical advisories fixed in NLTK 3.10.4: `BllipParser` passes caller-supplied model paths to the native `bllipparser` C extension without `pathsec` validation, enabling arbitrary file read (CVE-2026-126295); `YCOECorpusReader` performs only lexical path checks on `psd`/`pos` directories and follows symlinks outside the corpus root (CVE-2026-126304); and unbounded or quadratic CPU consumption affects `SteppingRecursiveDescentParser.parse()` (CVE-2026-126303), `TreebankWordTokenizer.span_tokenize` (CVE-2026-126300), and `LegalitySyllableTokenizer.tokenize` (GHSA-gpwc-27cw-rh9r).

What to check

Upgrade `nltk` to 3.10.4. Audit code paths that pass untrusted model paths, corpus archives, grammars or long tokens to these parsers and tokenizers.

A first fixed version is listed only when the advisory provides one. Advisory counts are not incident counts.

Affected and fixed versions by advisory (5)

GHSA-fg9w-wfp5-j933

NLTK: BllipParser passes caller-supplied model paths to the bllipparser C extension with no pathsec check, enabling arbitrary read

  • nltk (pip): affected >= 3.10.0, <= 3.10.3 → fixed 3.10.4

GHSA-gpwc-27cw-rh9r

NLTK: Quadratic CPU exhaustion in LegalitySyllableTokenizer.tokenize via unguarded onset reversal loop

  • nltk (pip): affected >= 3.6, <= 3.10.3 → fixed 3.10.4

GHSA-ffr9-mgrr-wcvr

NLTK: Quadratic CPU exhaustion in TreebankWordTokenizer.span_tokenize via list.pop(0) in quote-restore loop

  • nltk (pip): affected >= 3.2.5, <= 3.10.3 → fixed 3.10.4

GHSA-8fx7-8jr8-84rv

NLTK: Unbounded CPU consumption in SteppingRecursiveDescentParser.parse() with ambiguous or self-embedding grammars

  • nltk (pip): affected <= 3.10.3 → fixed 3.10.4

GHSA-qg35-44qx-7vrr

NLTK: Symlink escape in YCOECorpusReader lets a psd/pos directory symlink read files outside the corpus root within the data sandbox

  • nltk (pip): affected >= 3.10.0, <= 3.10.3 → fixed 3.10.4

Primary sources

GitHub reviewed advisory API — saved publication window

Related topics

UnrealIRCd: added to KEV, label-tag newline injection executes commands with server authority · Check Point DynamicCLI: added to KEV, root privilege escalation via 0777 local socket · ScreenConnect / SCKit: RMM+ empty-key condition and RelayTrap reverse spread to technician workstations · Apache APISIX: 7 flaws across identity headers, path normalization and openapi-to-mcp boundaries · Dropbear SSH: authorized_keys permitopen/permitlisten restrictions are not enforced on Unix-socket forwarding · SvelteKit: 4 advisories for adapter route-config injection and Node server crashes · OpenTelemetry (JS / Go / Python): unredacted server-span query strings, attribute-length bypass and header parsing