CVE-2026-21860 Details
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.
A vulnerability exists in Werkzeug's safe_join function prior to version 3.1.5, allowing the inclusion of Windows special device names with file extensions or trailing spaces. These device names, such as CON and AUX, are universally accessible in all directories on Windows. The vulnerability can be exploited when the application uses safe_join to serve files from user-specified paths, particularly if the requested path ends with a device name, causing the file read operation to hang indefinitely.
Users should upgrade to Werkzeug version 3.1.5 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-67 | Improper Handling of Windows Device Names | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| palletsprojects werkzeug | < 3.1.5 |
CPE
Remediation
| |
| microsoft windows | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 2, 2026 | Initial Analysis | [email protected] |
| Jan 8, 2026 | New CVE Received | [email protected] |