CVE-2026-63311
Description
NLTK before 3.10.0 (affected versions <= 3.9.4) contains a server-side request forgery (SSRF) vulnerability in the validate_network_url() function in nltk/pathsec.py. The _resolve_hostname() helper catches OSError and ValueError during socket.getaddrinfo() and returns an empty list; when DNS resolution fails, the validation loop executes no IP checks and the function fails open, allowing urlopen() to proceed without validation. An attacker who can trigger DNS resolution failures or use DNS rebinding can bypass SSRF protections and reach restricted network resources, including cloud metadata endpoints (e.g., 169.254.169.254).
Weakness
- CWE-918: Server-Side Request Forgery
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-08-26 |
Timeline
- 2026-08-22Published by the CNA14:12 UTC
- 2026-08-26CISA SSVC decision recorded4 days after publication
- 2026-09-02GitHub advisory published (GHSA-3gqm-fcw5-w839)11 days after publication
Exploit and advisory records
GitHub advisory GHSA-3gqm-fcw5-w839, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI nltk | before 3.10.0 | 3.10.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| nltk nltk | before 3.10.0fixed in 3.10.0 | 3.10.0 |
References
- https://github.com/nltk/nltk/security/advisories/GHSA-3gqm-fcw5-w839
- https://www.vulncheck.com/advisories/nltk-before-ssrf-via-dns-resolution-failure
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-63311'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-63311'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-63311'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-63311'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).