Skip to content
Misconfiguration Disclosed report Intermediate CVE-2026-12261

NLTK downloader allows cross-package resource and model poisoning

The NLTK downloader extracts package archives into shared namespaces like corpora/ and taggers/ rather than package-specific directories, and only checks integrity after extraction. This lets one package overwrite another package's trusted resources, and the changes take effect through normal NLTK APIs even after restarting the interpreter.

nltk/nltk

Originally disclosed on huntr

A vulnerability in nltk.downloader in nltk/nltk versions <= 3.9.4 allows for cross-package resource and model poisoning. The downloader extracts package archives into shared namespaces such as corpora/ and taggers/ instead of package-isolated roots, and validates package integrity only after the archive has been written and extracted. This design flaw enables one package to overwrite another package's trusted resources within the same namespace, making the changes immediately active through ordinary NLTK APIs. This issue persists across fresh interpreter restarts and can affect downstream workflows, including machine learning pipelines and reproducibility-sensitive environments.

From the GitHub Advisory Database (GHSA-ffj6-66c4-86gw, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the downloader uses shared namespace directories instead of per-package roots and verifies archive integrity only after writing and extracting the files.

Impact

A malicious package could overwrite another package's trusted resources, and the poisoned files remain active across interpreter restarts, potentially affecting machine learning pipelines and reproducibility-sensitive environments.

What the attacker needed

Ability to supply a package to the downloader

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

NLTK is a Python library for working with human language data. Its downloader fetches packages (such as word lists or trained models) and unpacks them into shared folders. Because different packages can land in the same folder, a malicious package can replace files that another package relies on, and NLTK will use the swapped files as if they were legitimate.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More from nltk/nltk

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.