Description
NLTK before 3.10.3 contains a server-side request forgery vulnerability in nltk.pathsec.urlopen (and callers nltk.data.load, nltk.downloader.Downloader.index/download) when an HTTP proxy is configured. pathsec.urlopen validates the requested hostname locally, but proxy-handler inheritance disables the safe HTTP/HTTPS handlers so the actual fetch is performed by the proxy against a destination that is never re-validated. An attacker can supply a validated public URL that the proxy forwards to an internal loopback-only service, allowing disclosure of internal HTTP resources, loading of forged downloader indexes, and installation of attacker-chosen package content.
Published: 2026-08-25
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Server‑side request forgery that allows internal network disclosure and malicious package installation
Action: Patch ASAP
AI Analysis

Impact

NLTK versions prior to 3.10.3 have a server‑side request forgery vulnerability in nltk.pathsec.urlopen and its callers. The function validates the hostname locally, but when an HTTP proxy is configured, proxy‑handler inheritance disables the safe HTTP/HTTPS handlers so the proxy performs the fetch without re‑validation. An attacker can trick the proxy into requesting an internal loopback‑only service by providing a validated public URL, resulting in disclosure of internal HTTP resources, loading of forged downloader indexes, and installation of attacker‑chosen package content.

Affected Systems

The NLTK library from the nltk vendor, in all versions earlier than 3.10.3. No other products are mentioned.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity and the vulnerability could be exploited when the application is configured to use an HTTP proxy. The EPSS score is not available, but the lack of a KEV listing does not diminish the risk for environments that rely on the vulnerable library. An attacker with access to supply parameters to the vulnerable function can leverage the bypass to reach internal services and introduce malicious content.

Generated by OpenCVE AI on August 25, 2026 at 04:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade NLTK to version 3.10.3 or later (the fix is included in that release)
  • Remove or disable any HTTP proxy configuration for the application or ensure it does not forward requests to internal networks
  • If immediate upgrade is not possible, restrict the proxy to only allow outgoing connections to known external IPs and block loopback addresses

Generated by OpenCVE AI on August 25, 2026 at 04:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6ww7-3frv-cqxh NLTK: pathsec SSRF protection can be bypassed when a proxy is configured
History

Fri, 04 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Tue, 25 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 25 Aug 2026 02:00:00 +0000

Type Values Removed Values Added
Description NLTK before 3.10.3 contains a server-side request forgery vulnerability in nltk.pathsec.urlopen (and callers nltk.data.load, nltk.downloader.Downloader.index/download) when an HTTP proxy is configured. pathsec.urlopen validates the requested hostname locally, but proxy-handler inheritance disables the safe HTTP/HTTPS handlers so the actual fetch is performed by the proxy against a destination that is never re-validated. An attacker can supply a validated public URL that the proxy forwards to an internal loopback-only service, allowing disclosure of internal HTTP resources, loading of forged downloader indexes, and installation of attacker-chosen package content.
Title NLTK before 3.10.3 SSRF Protection Bypass via Proxy
First Time appeared Nltk
Nltk nltk
Weaknesses CWE-918
CPEs cpe:2.3:a:nltk:nltk:*:*:*:*:*:*:*:*
Vendors & Products Nltk
Nltk nltk
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-25T15:23:57.389Z

Reserved: 2026-08-25T01:17:12.263Z

Link: CVE-2026-78682

cve-icon Vulnrichment

Updated: 2026-08-25T15:23:52.131Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-25T02:16:52.890

Modified: 2026-08-31T19:05:31.693

Link: CVE-2026-78682

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-25T01:30:38Z

Links: CVE-2026-78682 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T04:15:04Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)