Skip to main content
← All vulnerabilities
CVE-2026-63311PYSEC-2026-3723GHSA-3GQM-FCW5-W839

NLTK before 3.10.0 SSRF via DNS Resolution Failure

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.10.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • nltk nltk

    fixed in 3.10.0

  • nltkPyPI

    fixed in 3.10.0

References 2

GitHub · nltk/nltk

vulncheck.com