Vulnerability GHSA-2jhm-w3mp-jcwr

Low Risk
LOW RISK
CVSS Score: 3.7
Score Range: < 4.0
Low severity vulnerabilities (CVSS < 4.0). Hygiene issues that can accumulate but pose lower immediate risk.
1 month ago
August 10, 2026 at 12:31 AM UTC
NLTK network URL validation permits SSRF to RFC 6598 shared-address-space hosts
0.8 - 0.9.9 and 2.0b4 - 3.9.4
0.8 - 0.9.9 and 2.0b4 - 3.9.4

Summary

NLTK network URL validation permits SSRF to RFC 6598 shared-address-space hosts

Details

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.

Impacted packages

Timeline

Published
1 month ago
August 10, 2026 at 12:31 AM UTC
Fixed (3.10.0)
2 months ago
July 08, 2026 at 02:39 AM UTC
Last Modified
9 hours ago
October 02, 2026 at 11:40 PM UTC