BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-21860 in Palletsprojects Werkzeug and 1 more product

Medium 5.3 Fix available

Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.5, Werkzeug's safe_join function allows path segments with Windows device names that have file extensions or trailing spaces. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in eve...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.15.3
CVSS v46.3
EPSS0.6%
EPSS percentile43th
FixAvailable

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact.

Affected products and versions

VendorProductAffected versions
Palletsprojects Werkzeug < 3.1.5

Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Microsoft Windows

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.5, Werkzeug's safe_join function allows path segments with Windows device names that have file extensions or trailing spaces. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. Windows still accepts them with any file extension, such as CON.txt, or trailing spaces such as CON. This issue has been patched in version 3.1.5.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-21860
BreachSpider IDBS-2026-GLOBAL-277394-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published2026-01-08
Last modified2026-02-02
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-67: CWE-67

Analysis AI-written, not human-reviewed

CVE-2026-21860 affects Werkzeug versions prior to 3.1.5, where the safe_join function does not properly handle path segments with Windows device names that have file extensions or trailing spaces, potentially allowing unauthorized access to special device files.

An attacker can exploit this vulnerability by crafting a URL that includes a path segment with a Windows device name (e.g., CON.txt) to access or manipulate special device files on a Windows system.

Questions

What is CVE-2026-21860?

CVE-2026-21860 affects Werkzeug versions prior to 3.1.5, where the safe_join function does not properly handle path segments with Windows device names that have file extensions or trailing spaces, potentially allowing unauthorized access to special device files.

What is the CVSS score for CVE-2026-21860?

CVE-2026-21860 has CVSS 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L. EPSS: 0.6%.

Is CVE-2026-21860 actively exploited?

No confirmed active exploitation of CVE-2026-21860 as of 2026-05-30.

How do I remediate CVE-2026-21860?

Priority: MEDIUM. PSIRT: [email protected]

What systems are affected by CVE-2026-21860?

CVE-2026-21860 affects Palletsprojects Werkzeug.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Palletsprojects","product":"Werkzeug","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-02-02.