{"id":"CVE-2026-12372","aliases":["CVE-2026-12372","GHSA-2jhm-w3mp-jcwr","PYSEC-2026-3955"],"related":[],"kind":"vulnerability","state":"published","title":"Server-Side Request Forgery (SSRF) in nltk/nltk","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-08-09T22:45:52.799Z","modified":"2026-10-23T20:10:00.160Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"rating":"LOW"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":3.7,"rating":"LOW"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"nltk","product":"nltk/nltk","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.10.0"}],"ecosystem":"PyPI","package":"nltk","purl":"pkg:pypi/nltk","source":"ghsa"},{"ranges":[{"status":"affected","version":"3.9.4"}],"vendor":"nltk","product":"nltk","cpe":"cpe:2.3:a:nltk:nltk:3.9.4:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.9.4"}],"ecosystem":"PyPI","package":"nltk","purl":"pkg:pypi/nltk","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/2911b643-571c-42e4-b0c2-9a1fa6f491db","tags":["exploit","permissions-required","report","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12372","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nltk/nltk/commit/4a820afa58810cd05049b6c6eae306694d6cfe65","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nltk/nltk","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/nltk/nltk/releases/tag/v3.10.0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nltk/PYSEC-2026-3955.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-2jhm-w3mp-jcwr","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-12T17:45:59.173Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-12372","url":"https://www.cve.org/CVERecord?id=CVE-2026-12372","licence":"CVE Terms of Use","modified":"2026-08-12T17:48:54.679Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2jhm-w3mp-jcwr","url":"https://github.com/advisories/GHSA-2jhm-w3mp-jcwr","licence":"CC-BY-4.0","modified":"2026-10-02T23:40:41.750Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-12372","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12372","licence":"Public domain","modified":"2026-10-23T20:10:00.160Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3955","url":"https://osv.dev/vulnerability/PYSEC-2026-3955","licence":"CC-BY-4.0","modified":"2026-10-15T14:45:08.355Z"}],"updatedAt":"2026-11-25T22:59:31.949Z","epss":{"score":0.0031,"percentile":0.16361,"date":"2026-11-30T12:00:22.000Z"}}