CVE-2026-12372: CWE-918 Server-Side Request Forgery (SSRF) in nltk nltk/nltk
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.
AI Analysis
Technical Summary
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.
CVE-2026-12372: CWE-918 Server-Side Request Forgery (SSRF) in nltk 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
Affected software
nltk
nltk/nltk
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.