PT-2026-79562 · Pypi · Nltk

CVE-2026-63311

·

Published

2026-08-07

·

Updated

2026-09-02

CVSS v4.0

6.9

Medium

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L
Name of the Vulnerable Software and Affected Versions NLTK versions prior to 3.10.0
Description A server-side request forgery (SSRF) issue exists in the validate network url() function within nltk/pathsec.py. The resolve hostname() helper function catches OSError and ValueError during socket.getaddrinfo() and returns an empty list. If DNS resolution fails, the validation loop performs no IP checks, causing the function to fail open and allowing urlopen() to proceed without validation. This allows an attacker to bypass SSRF protections via DNS rebinding or by triggering DNS resolution failures to access restricted network resources, such as cloud metadata endpoints.
Recommendations Update to version 3.10.0 or later. As a temporary mitigation, restrict the use of the validate network url() function until the update is applied.

Exploit

Fix

SSRF

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2026-13472
CVE-2026-63311
GHSA-3GQM-FCW5-W839
GHSA-QG9P-XRHJ-435M
PYSEC-2026-3723

Affected Products

Nltk