# CVE-2026-63311: NLTK before 3.10.0 SSRF via DNS Resolution Failure

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-22T14:12:40.063Z
- Modified: 2026-10-14T13:10:00.187Z
- Also known as: GHSA-3gqm-fcw5-w839, PYSEC-2026-3723
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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).

(As written by CVE List.)

## Affected

- nltk nltk: before 3.10.0 (not affected: 3.10.0)
- nltk (PyPI): before 3.10.0

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `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`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/nltk/nltk/security/advisories/GHSA-3gqm-fcw5-w839> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/nltk-before-ssrf-via-dns-resolution-failure> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-63311> (advisory)
- <https://github.com/nltk/nltk/pull/3582> (web)
- <https://github.com/nltk/nltk/commit/4a820afa58810cd05049b6c6eae306694d6cfe65> (web)
- <https://github.com/nltk/nltk> (package)
- <https://github.com/nltk/nltk/releases/tag/v3.10.0> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3723.yaml> (web)

## Sources

- CVE List: [CVE-2026-63311](https://www.cve.org/CVERecord?id=CVE-2026-63311), CVE Terms of Use, modified 2026-08-26
- GitHub Advisory Database: [GHSA-3gqm-fcw5-w839](https://github.com/advisories/GHSA-3gqm-fcw5-w839), CC-BY-4.0, modified 2026-09-02
- NVD: [CVE-2026-63311](https://nvd.nist.gov/vuln/detail/CVE-2026-63311), Public domain, modified 2026-10-14
- PyPA Advisory Database: [PYSEC-2026-3723](https://osv.dev/vulnerability/PYSEC-2026-3723), CC-BY-4.0, modified 2026-08-28

---

Page: https://cve.day/CVE-2026-63311 · Whole record: https://cve.day/CVE-2026-63311.json · Rebuilt by cve.day 2026-11-25T22:59:34.875Z
