{"id":"CVE-2026-63311","published":"2026-08-22T14:12:40Z","modified":"2026-08-26T16:16:26Z","title":"NLTK before 3.10.0 SSRF via DNS Resolution Failure","vendor":"nltk","product":"nltk","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00334,"percentile":0.19334,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/nltk/nltk/security/advisories/GHSA-3gqm-fcw5-w839","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/nltk-before-ssrf-via-dns-resolution-failure","tags":["third-party-advisory"]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":3.87},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"nltk","affectedVersions":[{"vendor":"nltk","product":"nltk","versions":["< 3.10.0"]}],"fixedVersions":[{"vendor":"nltk","product":"nltk","versions":["3.10.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-08-26T15:58:19.898915Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nltk","vulnerableRanges":["<3.10.0"],"patched":["3.10.0"],"from":["GHSA-3gqm-fcw5-w839","PYSEC-2026-3723"],"provenance":"source"}],"summary":{"text":"The flaw is in NLTK before 3.10.0 (affected versions 3.9.4 and earlier), within the validate_network_url() function in nltk/pathsec.py, where the _resolve_hostname() helper fails open when DNS resolution errors occur, so validation is skipped and urlopen() proceeds unchecked. An attacker who can force DNS resolution failures or use DNS rebinding can get the library to reach restricted network resources, including cloud metadata endpoints such as 169.254.169.254, and the attack needs only network access to trigger the affected code path, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:22Z"},"euvd":{"id":"EUVD-2026-64334","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nltk-cve-2019-14751","children":[{"from":"CVE-2026-63311","to":"CVE-2026-126299","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["nltk/pathsec.py"],"commits":["https://github.com/nltk/nltk/commit/0bb5b947bd235b950cf2f90e893a498e16da0fe3","https://github.com/nltk/nltk/commit/cf12a5e6a439fe1d722acd53d4309911faaaaf78","https://github.com/nltk/nltk/commit/4a820afa58810cd05049b6c6eae306694d6cfe65"],"basis":"rarely changed file"}]}]}}