CVE-2026-33236
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedNLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and tutorials supporting research and development in Natural Language Processing. In versions 3.9.3 and prior, the NLTK downloader does not validate the `subdir` and `id` attributes when processing remote XML index files. Attackers can control a remote XML index server to provide malicious values containing path traversal sequences (such as `../`), which can lead to arbitrary directory creation, arbitrary file creation, and arbitrary file overwrite. Commit 89fe2ec2c6bae6e2e7a46dad65cc34231976ed8a patches the issue.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe NLTK downloader in versions 3.9.3 and prior fails to validate `subdir` and `id` attributes when parsing remote XML index files. An attacker controlling a malicious XML index server can embed path traversal sequences (`../`) in these attributes, allowing arbitrary directory creation, file creation, and file overwrite on the victim's filesystem.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 3.9.3CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed NLTK versionRun 'python -c "import nltk; print(nltk.__version__)"' or 'pip show nltk' to display the installed versionAffected if The version is 3.9.3 or lower
-
Identify the configured NLTK data serverRun 'python -c "from nltk.downloader import Downloader; d = Downloader(); print(d._INDEX_URL)"' to see which server URL the downloader is configured to useAffected if The URL is not the official NLTK data server (https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml) or is a custom/untrusted source
-
Check for custom downloader configuration filesInspect the NLTK data directory (typically ~/.nltk) for any custom configuration files or server redirect files that may point to untrusted sourcesAffected if Non-standard or custom server configurations are present in the NLTK data directory
-
Verify XML parser behavior with path traversalInspect the nltk.downloader module source code to confirm whether the 'subdir' and 'id' attributes are validated before use in file operations (look for path traversal protection)Affected if The code lacks validation for '../' sequences in the XML parsing logic for index files
You are affected if your NLTK version is 3.9.3 or lower AND the downloader is configured to use a non-official or untrusted data server, allowing a remote attacker to supply path traversal sequences via crafted XML index responses.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade NLTK to a version newer than 3.9.3. Until patched, avoid downloading data from untrusted or non-official NLTK data sources and consider network segmentation to block unauthorized XML index server connections.
nltk > 3.9.3 (latest stable release)
- Run `pip install --upgrade nltk` to install the latest version of NLTK which includes the security patch for the path traversal vulnerability in the downloader
- Alternatively, if you need a specific version, verify that the version you install is newer than 3.9.3 and includes commit 89fe2ec2c6bae6e2e7a46dad65cc34231976ed8a
- After upgrading, verify the fix by checking that the NLTK downloader now validates the `subdir` and `id` attributes from remote XML index files
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,176.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-33236 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-33236 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data