nltk
Affected
- introduced
0, fixed3.10.0(ecosystem)
Fixed versions
3.10.0
Fix
- Fixed version
3.10.0pip install --upgrade nltk==3.10.0
Advisory
Also known as: CVE-2026-63311, GHSA-3gqm-fcw5-w839
The record has no summary.
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).
Not rated by the source.
0, fixed 3.10.0 (ecosystem)3.10.0
3.10.0pip install --upgrade nltk==3.10.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0