Skip to main content
EPSS 0.3%top 82%

CVE-2026-12372: CWE-918 Server-Side Request Forgery (SSRF) in nltk nltk/nltk

0
Low
VulnerabilityCVE-2026-12372cvecve-2026-12372cwe-918
Published: 08/09/2026 (08/09/2026, 22:45:52 UTC)
Source: CVE Database V5
Vendor/Project: nltk
Product: nltk/nltk

Description

A Server-Side Request Forgery (SSRF) vulnerability exists in nltk/nltk versions 3.9.4 and the current develop branch. The `nltk.pathsec.validate_network_url()` function, intended to prevent SSRF by rejecting internal network addresses, fails to reject IPs in the RFC 6598 shared address space (`100.64.0.0/10`). This occurs because Python's `ipaddress` module does not classify such addresses as `is_private` or `is_global`, and the current guard only checks `is_private` and a few explicit categories. An attacker who can influence a URL passed to NLTK's network-loading helpers can exploit this vulnerability to make a strict-mode application send requests to shared-address-space hosts, potentially exposing non-public infrastructure reachable from the application host. The impact is limited to SSRF-style confidentiality exposure, with no code execution claimed.

CVSS v3.0

Score 3.7low

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected software

nltk

nltk/nltk

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 14:56:24 UTC

Technical Analysis

The SSRF vulnerability in nltk 3.9.4 and the develop branch is caused by incomplete validation of network URLs in the validate_network_url() function. Specifically, IP addresses in the RFC 6598 shared address space (100.64.0.0/10) are not rejected because Python's ipaddress module does not mark them as private or global, and the current validation logic only checks for is_private and a few explicit categories. This allows an attacker who can influence URLs used by nltk's network-loading helpers to induce the application to send requests to internal shared-address-space hosts. The vulnerability is categorized as CWE-918 and has a CVSS 3.0 base score of 3.7, indicating low severity. No code execution or denial of service impact is claimed, only potential confidentiality exposure through SSRF.

Potential Impact

The vulnerability allows an attacker to perform SSRF attacks targeting hosts in the RFC 6598 shared address space reachable from the application host. This could lead to unauthorized access to internal infrastructure or services that are not publicly accessible. However, the impact is limited to confidentiality exposure; there is no reported impact on integrity, availability, or code execution.

Mitigation Recommendations

No official fix or patch is currently available for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is released, users should avoid passing untrusted URLs to nltk's network-loading helpers or the validate_network_url() function. Consider implementing additional network-level controls to restrict outbound requests to trusted destinations.

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

Technical Details

Data Version
5.2
Assigner Short Name
@huntr_ai
Date Reserved
2026-06-16T06:05:39.765Z
Cvss Version
3.0
State
PUBLISHED

Threat ID: 6a7905b9bf8831d539631c3c

Added to database: 08/09/2026, 22:56:57 UTC

Last enriched: 08/17/2026, 14:56:24 UTC

Last updated: 09/22/2026, 13:47:42 UTC

Views: 94

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