{"id":"CVE-2026-21860","published":"2026-01-08T18:34:05Z","modified":"2026-01-08T18:50:34Z","title":"Werkzeug safe_join() allows Windows special device names with compound extensions","vendor":"pallets","product":"werkzeug","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.006,"percentile":0.42769,"provenance":"source"},"cwes":[{"id":"CWE-67","name":"Improper Handling of Windows Device Names"}],"references":[{"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-87hc-h4r5-73f7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pallets/werkzeug/commit/7ae1d254e04a0c33e241ac1cca4783ce6c875ca3","tags":["x_refsource_MISC"]}],"priority":{"score":13.0,"factors":[{"name":"EPSS percentile","points":8.55},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"pallets","affectedVersions":[{"vendor":"pallets","product":"werkzeug","versions":["< 3.1.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-08T18:50:24.550661Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Werkzeug","vulnerableRanges":["<3.1.5"],"patched":["3.1.5"],"from":["GHSA-87hc-h4r5-73f7","PYSEC-2026-2044"],"provenance":"source"}],"summary":{"text":"In Werkzeug, the WSGI web application library for Python, the safe_join() function fails to block Windows reserved device names (such as CON or AUX) when they carry a file extension or trailing spaces, so such path segments are not rejected as unsafe. An attacker with network access and no authentication or user interaction can send a crafted request that uses one of these device-name variants to reach a path that safe_join() was meant to confine, though only a limited, availability-level impact results and the attack applies only to Windows deployments, with versions before 3.1.5 affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:24Z"},"euvd":{"id":"EUVD-2026-1425","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-34069","published":"2024-05-06","fixed":"3.0.3","kev":false},{"cve":"CVE-2024-49766","published":"2024-10-25","fixed":"3.0.6","kev":false},{"cve":"CVE-2024-49767","published":"2024-10-25","fixed":"3.0.6","kev":false,"link":{"from":"CVE-2024-49767","to":"CVE-2026-21860","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Werkzeug","fromFixed":"3.0.6","toFixed":"3.1.5","daysApart":440}]}},{"cve":"CVE-2026-21860","published":"2026-01-08","fixed":"3.1.5","kev":false},{"cve":"CVE-2026-102598","published":"2026-09-29","fixed":"3.1.9","kev":false,"link":{"from":"CVE-2026-21860","to":"CVE-2026-102598","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Werkzeug","fromFixed":"3.1.5","toFixed":"3.1.9","daysApart":264}]}}],"package":"PyPI:Werkzeug"}}