CVE-2026-63311
Medium · 5.3CVSS
5.3
EPSS
0.3%
Published
Aug 22, 2026
CISA due date
—
Cloudanix analysis
A bug in a popular text-processing library can let attackers reach internal systems that should be off-limits when the library tries to check web addresses.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- SSRF
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The validate_network_url() function in nltk/pathsec.py fails to perform IP validation when _resolve_hostname() returns an empty list after DNS resolution errors (OSError/ValueError from getaddrinfo), allowing urlopen() to connect to arbitrary targets including internal or metadata services.
Why it matters to the business
Attackers can reach internal network resources or cloud instance metadata that should be protected, potentially leading to data exposure or unauthorized access in environments using NLTK for URL handling.
How an attack unfolds
An attacker supplies a hostname that triggers DNS resolution failure or uses DNS rebinding techniques; the validation loop is skipped, the SSRF check fails open, and urlopen() proceeds to the attacker-controlled or restricted destination.
How to fix it
Upgrade NLTK to version 3.10.0 or later where the DNS failure handling and validation logic have been corrected; until then restrict untrusted URL inputs or wrap calls with additional network-level controls.
How to confirm the fix worked
Confirm NLTK version is 3.10.0 or newer; test that validate_network_url now correctly rejects or blocks attempts that previously bypassed checks due to resolution failures.
Typical attack path
- Identify an NLTK-based application that accepts or processes untrusted URLs via validate_network_url
- Craft a URL whose DNS resolution fails or rebinds to an internal target such as 169.254.169.254
- Trigger the vulnerable code path so that the empty-list return bypasses all IP checks
- Reach restricted resources that would normally be blocked by the SSRF protection
How to detect it
Review application logs for NLTK URL validation calls that result in connections to unexpected internal IPs or metadata endpoints; look for patterns of DNS failures followed by successful outbound connections from the NLTK process.
What your security team should do
- Inventory all deployments and dependencies that include NLTK <= 3.9.4
- Prioritize upgrade to 3.10.0 in any environment that processes external URLs
- Add network egress controls or proxies to limit reachability of metadata endpoints as a compensating control
- Monitor for new NLTK releases and update dependency manifests accordingly
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-121581 A vulnerability has been found in ArcReel 0.32.0/0.33.0/0.34.0. CWE-918
- CVE-2026-121580 Server-side request forgery in the Jira ticketing filter lookup in Devolutions Server… CWE-918
- CVE-2026-120715 Server-side request forgery in the Active Directory credential validation in Devolutions… CWE-918
- CVE-2026-105822 The Tapo Cloud MQTT proxy contains a server-side request forgery (SSRF) vulnerability… CWE-918
- CVE-2026-121561 Label Studio before 1.23.2 (label-studio-sdk before 2.1.2) contains a server-side request… CWE-918
- CVE-2026-114582 An issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before… CWE-918
- CVE-2026-111362 An issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before… CWE-918
- CVE-2026-121431 AzuraCast before 0.24.0 contains a server-side request forgery vulnerability that allows… CWE-918