Server-side Request Forgery (SSRF) Affecting nltk package, versions [,3.10.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-NLTK-18601824
  • published10 Aug 2026
  • disclosed9 Aug 2026
  • creditoptimystical

Introduced: 9 Aug 2026

NewCVE-2026-12372  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade nltk to version 3.10.0 or higher.

Overview

nltk is a Natural Language Toolkit (NLTK) is a Python package for natural language processing.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the validate_network_url() address-policy check in nltk/pathsec.py. An attacker can make a strict-mode application send requests to shared-address-space or other non-global hosts by supplying a URL whose resolved IP falls in 100.64.0.0/10, which the filter does not reject. The vulnerable logic only blocked loopback, link-local, multicast, and private addresses, so requests to RFC 6598 carrier-grade NAT targets passed validation. That exposes internal or non-public network resources reachable from the host running NLTK’s network-loading helpers.

CVSS Base Scores

version 4.0
version 3.1