Patchfirst
CVE-2026-128138 Public exploit Critical · 9.8 EPSS 0.7%

NLTK incomplete fix: additional JVM/JAR sandbox bypass through unvalidated launcher tokens in java() command arguments

Fix:upgrade nltk to 3.10.4 or later Details ↓

nltk · nltk

Official description · NVD

NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. From 3.10.3 until 3.10.4, the NLTK 3.10.3 JVM hardening validates Java launcher tokens in the options channel but appends the caller-controlled cmd sequence without requiring its first token to be a main class. Supplying -jar or an @argfile through nltk.internals.java or StanfordSegmenter.java_class can therefore execute attacker-selected Java bytecode without the unsafe-JAR opt-in. This issue is fixed in version 3.10.4.

Breakdown
23.2 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Public exploit code (PoC-in-GitHub) appeared 4 days after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+4 days

Affected versions and fixes

as published in the CVE record

nltk nltk

Affected: >= 3.10.3, < 3.10.4

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: nltk.

Upgrade to 3.10.4 or later

pippip install "nltk>=3.10.4"

The first fix for CVE-2026-128138. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
3.10.3 up to 3.10.43.10.4

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 1 community threat pulse (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag (1 duplicate merged)
↑ ↓ chooseEnter openEsc close