Security Resilience

CVE-2026-21860

Palletsprojects Werkzeug ≤ 3.1.5

Published
08 January 2026
Modified
02 February 2026
Patch / advisory
CVSS Score v4 6.3
Click a component to see what it means
Raw vectorCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0060 43th percentile
Risk Priority 41 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-21860 is a medium-severity Improper Handling of Windows Device Names (CWE-67) vulnerability in Palletsprojects Werkzeug. Its CVSS base score is 6.3 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked at the 43th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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,…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-66221Same product: Palletsprojects Werkzeug
CVE-2026-27199Same product: Palletsprojects Werkzeug
CVE-2024-49766Same product: Palletsprojects Werkzeug
CVE-2024-35197Shared CWE-67
CVE-2024-33868Shared T1190, T1499
CVE-2023-1186Shared T1190, T1499
CVE-2024-23441Shared T1190, T1499
CVE-2023-41234Shared T1190, T1499
CVE-2024-1443Shared T1190, T1499
CVE-2023-3765Shared T1190, T1499

Affected Assets

palletsprojects
werkzeug
≤ 3.1.5

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Input validation directly stops construction of pathnames containing Windows device names from untrusted data.

Secure engineering principles include safe pathname construction and device-name filtering.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require input validation and safe pathname handling that prevent device-name misuse.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development can detect and prevent device-name pathname vulnerabilities.

prevents

Training on secure input handling can make some developers aware of Windows device name pitfalls and filter them, but this is a niche implementation detail that most general awareness training will not cover, so only a minority of instances are prevented.

prevents

Secure coding standards directly address proper handling of Windows reserved device names in pathnames.

prevents

A.8.30 carries secure design, coding and testing practice (8.25–8.29) into outsourced work via contract, so a faithful implementation reduces ordinary software implementation defects like improper handling of Windows device names; the clause's ceiling on `prevents` is `partial` because the effect depends on the supplier's actual practice.

finds

A.8.8's reach is DISCLOSURE — it sees only instances carrying a vendor-published flaw. CWE-67 is primarily a first-party implementation defect in how applications construct pathnames, and A.8.8's scanning/vulnerability-management programme does not inspect first-party source. The minority it does find is the slice where a third-party component ships with this weakness and it has been published as a CVE (the observed examples are historical CVEs in specific products), which is a bounded but small share of the class.

References