Skip to content
OpenAdvisories
Low · 3.7 CVE-2026-12372 EUVD-2026-54961GHSA-2jhm-w3mp-jcwrPYSEC-2026-3955

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

Published Aug 9, 2026 · Updated Aug 12, 2026 · Assigned by @huntr_ai

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 products

VendorProductAffectedFixed
nltk nltk/nltk unspecified – ≤ latest —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nltk No fix yet —
Debian 13 nltk No fix yet —
Debian 12 nltk No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 nltk No fix yet —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS nltk No fix yet —
Ubuntu Pro 24.04 LTS nltk No fix yet —
Ubuntu Pro 22.04 LTS nltk No fix yet —
Ubuntu Pro 20.04 LTS nltk No fix yet —
Ubuntu Pro 18.04 LTS nltk No fix yet —
Ubuntu Pro 16.04 LTS nltk No fix yet —
Ubuntu Pro 14.04 LTS nltk No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-nltk 3.10.2-1.1 openSUSE-SU-2026:11510-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nltk < 3.10.0 3.10.0 GHSA-2jhm-w3mp-jcwr
PyPI nltk <= 3.9.4 — PYSEC-2026-3955

Advisories 1

References