Server-Side Request Forgery (SSRF) in Natural Language Toolkit - CVE-2026-54296
Published: August 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to server-side request forgery in nltk.pathsec.urlopen when validating a hostname before urllib performs a separate connection-time DNS resolution. A remote attacker can supply a hostname with attacker-controlled DNS rebinding records to disclose sensitive information.
The issue defeats the documented ENFORCE mode and can expose responses from internal-only HTTP services, including loopback administrative interfaces and cloud metadata endpoints.