Skip to main content
EPSS 0.3%top 75%

Gptline: NLTK: SSRF Fail-Open in validate_network_url() via DNS Resolution Failure (CVE-2026-63311)

0
Medium
Published: 08/28/2026 (08/28/2026, 12:34:21 UTC)
Source: GCVE Database
Product: gptline

Description

CVE-2026-63311 is a Server-Side Request Forgery (SSRF) vulnerability in NLTK version 3.9.4's validate_network_url() function. The vulnerability arises because the function fails open when DNS resolution fails, allowing requests to proceed without proper IP validation. This can lead to bypassing SSRF protections, including access to sensitive cloud metadata endpoints such as 169.254.169.254. A patch is available to fix this issue by enforcing fail-closed behavior on DNS resolution failure.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
Low
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

Affected software

nltk
pkg:pypi/nltk
Affected versions
<=3.9.4
Homebrewmore threats →ghsa
gptline
pkg:brew/gptline
Affected versions
>=1.0.8 <1.0.8_22

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/18/2026, 02:17:43 UTC

Technical Analysis

The SSRF vulnerability in NLTK 3.9.4 occurs in the validate_network_url() function within nltk/pathsec.py. When DNS resolution via _resolve_hostname() fails due to OSError or ValueError, it returns an empty list. The validation loop then does not execute, and the function returns normally without validating the IP address. This fail-open behavior disables SSRF protections if DNS is unavailable or unreliable, enabling attackers to bypass checks and potentially access sensitive internal resources such as cloud metadata services. The correct behavior is to fail-closed by rejecting URLs when DNS resolution fails. A patch is available to add an explicit check that raises a SecurityError if hostname resolution returns empty.

Potential Impact

The vulnerability allows attackers to bypass SSRF protections when DNS resolution fails, potentially enabling unauthorized access to internal or cloud metadata endpoints (e.g., AWS IMDS at 169.254.169.254). This can lead to disclosure of sensitive credentials or service account tokens, resulting in high confidentiality impact on downstream systems. The issue affects environments with unreliable DNS resolvers or during temporary DNS outages, increasing the risk of exploitation.

Mitigation Recommendations

A patch is available for this vulnerability. The vendor recommends applying the fix that enforces fail-closed behavior by raising an exception when DNS resolution fails during URL validation. This prevents requests from proceeding without proper IP validation. Users should update to the fixed version of NLTK to mitigate this SSRF vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-qg9p-xrhj-435m
Osv Schema Version
1.4.0
Aliases
["CVE-2026-63311"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a8a27f7acd9273b499bc98a

Added to database: 08/22/2026, 22:51:35 UTC

Last enriched: 09/18/2026, 02:17:43 UTC

Last updated: 10/06/2026, 18:48:23 UTC

Views: 81

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses