# CVE-2026-128135: NLTK: ZIP package extraction follows in-root hardlinks and overwrites files outside the NLTK data root

Status: published. Published: 2026-11-19. Updated: 2026-11-24.

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.9.4 to 3.10.3, NLTK ZIP package extraction can write through an existing in-root hardlink whose other link points outside the NLTK data root. A local attacker who can prepare the extraction target can cause a package member write to overwrite an out-of-root file, violating the pathsec containment boundary and affecting integrity and availability. This issues is fixed in version 3.10.4.

## Remediation

- fix: nltk (pip): GitHub reports patched versions 3.10.4. Check the advisory for the affected release branch. (source: GitHub GHSA-wr3g-j6qj-xpgh) — https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh
- fix: nltk (PyPI): OSV reports a fixed version 3.10.4. Check the advisory for supported release branches. (source: OSV GHSA-wr3g-j6qj-xpgh) — https://github.com/advisories/GHSA-wr3g-j6qj-xpgh

## Affected products and versions

- nltk / nltk: >= 3.9.4, < 3.10.4 (affected). Source: CNA: GitHub_M
-  / nltk (nltk): >= 3.9.4, <= 3.10.3 (affected, GitHub advisory range). Source: GitHub GHSA-wr3g-j6qj-xpgh
-  / nltk (nltk): 3.10.0 (affected, PyPI); 3.10.1 (affected, PyPI); 3.10.2 (affected, PyPI); 3.10.3 (affected, PyPI); 3.9.4 (affected, PyPI); Ecosystem version events: introduced 3.9.4; fixed 3.10.4. Source: OSV GHSA-wr3g-j6qj-xpgh

## Severity and prioritization

- CVSS 3.1: 7.1 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H; source: CNA: GitHub_M

- CVSS 3.1: 7.1 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H; source: NVD: security-advisories@github.com

- CISA KEV: No listing in collected sources

- EPSS: 0.22% as of 2026-11-23; percentile 13.22%

- SSVC: exploitation poc; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-59, CWE-73

## Exploit evidence

- exploit: https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh (ADP: CISA-ADP)

## References

- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/nltk/nltk/pull/3753 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/nltk/nltk/commit/0e9898b7615b4ab3b023e868212316a489ece4f0 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/nltk/nltk/commit/cf12a5e6a439fe1d722acd53d4309911faaaaf78 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/nltk/nltk/releases/tag/v3.10.4 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh (ADP: CISA-ADP; exploit)

- https://github.com/nltk/nltk/commit/0e9898b7615b4ab3b023e868212316a489ece4f0 (security-advisories@github.com)

- https://github.com/nltk/nltk/commit/cf12a5e6a439fe1d722acd53d4309911faaaaf78 (security-advisories@github.com)

- https://github.com/nltk/nltk/pull/3753 (security-advisories@github.com)

- https://github.com/nltk/nltk/releases/tag/v3.10.4 (security-advisories@github.com)

- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh (security-advisories@github.com)

- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh (134c704f-9b21-4f2e-91b3-4a467353bcc0)

- https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh (GitHub Security Advisories; advisory)

- https://github.com/advisories/GHSA-wr3g-j6qj-xpgh (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-wr3g-j6qj-xpgh (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-128135; retrieved 2026-11-24; source updated 2026-11-24

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-128135; retrieved 2026-11-24; source updated 2026-11-24

- GitHub Security Advisories: https://github.com/nltk/nltk/security/advisories/GHSA-wr3g-j6qj-xpgh; retrieved 2026-11-24; source updated 2026-11-15

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-wr3g-j6qj-xpgh; retrieved 2026-11-24; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-128135; retrieved 2026-11-24; source updated Not reported

Revision: c225d67f7d134b682d18670cdd0dce7abf92479c78e9ce3876b7a74a6c1bb1f3

Canonical: https://y2.dev/cve/CVE-2026-128135

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.