PT-2026-21351 · Werkzeug · Werkzeug

Alimezar

·

Published

2026-02-19

·

Updated

2026-05-20

·

CVE-2026-27199

CVSS v4.0

6.3

Medium

VectorAV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Werkzeug versions 3.1.5 and below
Description The safe join function in Werkzeug, a WSGI web application library, improperly handles Windows device names when used as filenames, particularly when preceded by other path segments. Specifically, the function allows Windows device names as filenames, potentially leading to indefinite hanging when reading files if the application is running on Windows and the requested path ends with a special device name. The send from directory function utilizes safe join to serve files, making it susceptible to this issue.
Recommendations Update to Werkzeug version 3.1.6 or later.

Exploit

Fix

Weakness Enumeration

Related Identifiers

CVE-2026-27199
GHSA-29VQ-49WR-VM6X

Affected Products

Werkzeug