Vulnerability
CVE-2026-27199
Werkzeug is a comprehensive WSGI web application library. Versions 3.1.5 and below, the safe_join function allows Windows device names as filenames if preceded by other path segments. This was previously reported as GHSA-hgf8-39gv-g3f2, but the added filtering failed to account for the fact that safe_join accepts paths with multiple segments, such as example/NUL. The function send_from_directory uses safe_join to safely serve files at user-specified paths under a directory. If the application is running on Windows, and the requested path ends with a special device name, the file will be opened successfully, but reading will hang indefinitely. This issue has been fixed in version 3.1.6.
40 advisories report this vulnerability, across 4 ecosystems.
Advisories in Wolfi
- CGA-2vgr-vpgw-pm9h
- CGA-4943-27xv-j44m
- CGA-9wxj-vw4x-q6p8
- CGA-h68f-45pj-47h7
- CGA-jj92-8rj5-x4g8
- CGA-jvv2-767v-36jv
- CGA-m3p3-c3cf-7w9h
- CGA-p6hx-698g-6qqp
- CGA-qc4g-gwrh-c8f7
- CGA-qc9j-523m-vxjc
- CGA-r6c7-ww45-7wc5
- CGA-rr3g-p6r8-wxcg
- CGA-vh7m-mf7m-74q2
- CGA-vq8x-3cg2-6gf7
- CGA-vx88-rjvh-6qf9
- CGA-w2xf-79wg-jx5q
- CGA-xfc3-mph5-5wg3