GHSA-qg9p-xrhj-435m
MEDIUM 5.3CVSS 3.1withdrawn / rejectedDuplicate Advisory: nltk: SSRF Fail-Open in validate_network_url() via DNS Resolution Failure
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-3gqm-fcw5-w839. This link is maintained to preserve external references.
Original 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).
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L | |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | nltk | <= 3.9.4 |
References
- https://github.com/nltk/nltk/security/advisories/GHSA-3gqm-fcw5-w839 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-63311 · ADVISORY
- https://www.vulncheck.com/advisories/nltk-before-ssrf-via-dns-resolution-failure · WEB
History
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Aug 2026)