Home

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.

PUBLISHED Reserved 2026-01-05 | Published 2026-01-08 | Updated 2026-01-08 | Assigner GitHub_M




MEDIUM: 6.3CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Problem types

CWE-67: Improper Handling of Windows Device Names

Product status

< 3.1.5
affected

References

github.com/...rkzeug/security/advisories/GHSA-87hc-h4r5-73f7

github.com/...ommit/7ae1d254e04a0c33e241ac1cca4783ce6c875ca3

cve.org (CVE-2026-21860)

nvd.nist.gov (CVE-2026-21860)

Download JSON