CVE-2026-12372
JSON

3.7low

Server-Side Request Forgery (SSRF) in nltk/nltk

Severity
3.7low CVSS:3.0 by @huntr_ai
Exploit likelihood
0.31% (higher than 16% of CVEs)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-2jhm-w3mp-jcwrPYSEC-2026-3955

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.

Affected

Product or packageVersionsReported by
nltk nltk/nltkfrom unspecified up to latestCVE List
nltk (PyPI)before 3.10.0, up to 3.9.4GitHub Advisory Database, PyPA Advisory Database
nltk nltk3.9.4NVD

All scores

@huntr_ai3.7low CVSS:3.0CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHub3.7low CVSS:3.0CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
PyPA Advisory Database3.7low CVSS:3.0CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Una vulnerabilidad de falsificación de petición del lado del servidor (SSRF) existe en las versiones 3.9.4 de nltk/nltk y en la rama de desarrollo actual. La función ’nltk.pathsec.validate_network_url()’, destinada a prevenir SSRF al rechazar direcciones de red internas, no logra rechazar IPs en el espacio de direcciones compartidas RFC 6598 (’100.64.0.0/10’). Esto ocurre porque el módulo ’ipaddress’ de Python no clasifica dichas direcciones como ’is_private’ o ’is_global’, y la protección actual solo verifica ’is_private’ y algunas categorías explícitas. Un atacante que puede influir en una URL pasada a las funciones de ayuda de carga de red de NLTK puede explotar esta vulnerabilidad para hacer que una aplicación en modo estricto envíe peticiones a hosts del espacio de direcciones compartidas, exponiendo potencialmente infraestructura no pública accesible desde el host de la aplicación. El impacto se limita a la exposición de confidencialidad de tipo SSRF, sin ejecución de código reclamada.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-12372 changed 2026-08-12CVE Terms of Use
GitHub Advisory DatabaseGHSA-2jhm-w3mp-jcwr changed 2026-10-02CC-BY-4.0
NVDCVE-2026-12372 changed 2026-10-23Public domain
PyPA Advisory DatabasePYSEC-2026-3955 changed 2026-10-15CC-BY-4.0