CVE-2026-63311
NLTK before 3.10.0 (affected versions <= 3.9.4) contains a …
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).
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/nltk/nltk/security/advisories/GHSA-3gqm-fcw5-w839
- www.vulncheck.com/advisories/nltk-before-ssrf-via-dns-resolution-failure
- nvd.nist.gov/vuln/detail/CVE-2026-63311
- github.com/nltk/nltk/pull/3582
- github.com/nltk/nltk/commit/4a820afa58810cd05049b6c6eae306694d6cfe65
- github.com/nltk/nltk/releases/tag/v3.10.0
- github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3723.yaml
- github.com/advisories/GHSA-3gqm-fcw5-w839
- nvd.nist.gov/vuln/detail/CVE-2026-63311
- cve.org/CVERecord?id=CVE-2026-63311
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.