Vulnerability Details CVE-2026-63311
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).
Exploit prediction scoring system (EPSS) score
EPSS Score 0.002
EPSS Ranking 16.0%
CVSS Severity
CVSS v3 Score 5.3
Products affected by CVE-2026-63311
-
cpe:2.3:a:nltk:nltk:2.0.1
-
cpe:2.3:a:nltk:nltk:2.0.3
-
cpe:2.3:a:nltk:nltk:2.0.4
-
cpe:2.3:a:nltk:nltk:3.0.0
-
cpe:2.3:a:nltk:nltk:3.0.1
-
cpe:2.3:a:nltk:nltk:3.0.2
-
cpe:2.3:a:nltk:nltk:3.0.3
-
cpe:2.3:a:nltk:nltk:3.0.4
-
cpe:2.3:a:nltk:nltk:3.0.5
-
-
-
cpe:2.3:a:nltk:nltk:3.2.1
-
cpe:2.3:a:nltk:nltk:3.2.2
-
cpe:2.3:a:nltk:nltk:3.2.3
-
cpe:2.3:a:nltk:nltk:3.2.4
-
cpe:2.3:a:nltk:nltk:3.2.5
-
-
-
cpe:2.3:a:nltk:nltk:3.4.1
-
cpe:2.3:a:nltk:nltk:3.4.3
-
cpe:2.3:a:nltk:nltk:3.4.4
-
cpe:2.3:a:nltk:nltk:3.4.5
-
-
-
cpe:2.3:a:nltk:nltk:3.6.1
-
cpe:2.3:a:nltk:nltk:3.6.2
-
cpe:2.3:a:nltk:nltk:3.6.3
-
cpe:2.3:a:nltk:nltk:3.6.4
-
cpe:2.3:a:nltk:nltk:3.6.5
-
cpe:2.3:a:nltk:nltk:3.6.6
-
cpe:2.3:a:nltk:nltk:3.6.7
-
-
-
cpe:2.3:a:nltk:nltk:3.8.1
-
-
cpe:2.3:a:nltk:nltk:3.9.1
-
cpe:2.3:a:nltk:nltk:3.9.2
-
cpe:2.3:a:nltk:nltk:3.9.3
-
cpe:2.3:a:nltk:nltk:3.9.4