CVE-2026-63311

published 22 Aug 2026 · updated 26 Aug 2026

NLTK before 3.10.0 SSRF via DNS Resolution Failure

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.10.0.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
nltk<3.10.03.10.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-63311 severity on Zeptric[![CVE-2026-63311](https://zeptric.io/badge/cve/CVE-2026-63311.svg)](https://zeptric.io/cve/CVE-2026-63311)