← Vulnerability feed

Vulnerability record · CVE-2026-27199 · published 21 February 2026

CVE-2026-27199: Palletsprojects werkzeug vulnerability

PPalletsprojects · Werkzeug

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.

6.3 CVSS 4.0 Medium EPSS 0.54% · top 56.7% CWE-67 · CWE-67
6.3CVSS 4.0 base score
0.54%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
3References
17 Jun 2026Last modified by NVD

Description

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.

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-27199 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2022-29361Palletsprojects werkzeug http request smuggling vulnerabilityImproper parsing of HTTP requests in Pallets Werkzeug v2.1.0 and below allows attackers to perform HTTP Request Smuggling using a crafted HTTP reques…EPSS 8.1%7.5CVE-2024-34069Palletsprojects werkzeug cross-site request forgery vulnerabilityWerkzeug is a comprehensive WSGI web application library. The debugger in affected versions of Werkzeug can allow an attacker to execute code on a de…EPSS 3.4%7.5CVE-2023-46136Palletsprojects werkzeug uncontrolled resource consumption vulnerabilityWerkzeug is a comprehensive WSGI web application library. In versions on the 3.x branch prior to 3.0.1 and on the 2.x branch prior to 2.3.8, if an up…EPSS 1.1%7.5CVE-2023-25577Palletsprojects werkzeug allocation without limits vulnerabilityWerkzeug is a comprehensive WSGI web application library. Prior to version 2.2.3, Werkzeug's multipart form data parser will parse an unlimited numbe…EPSS 1.4%7.5CVE-2019-14806Palletsprojects werkzeug vulnerabilityPallets Werkzeug before 0.15.3, when used with Docker, has insufficient debugger PIN randomness because Docker containers share the same machine id.EPSS 2.3%7.5CVE-2019-14322Werkzeug SharedDataMiddleware Windows path traversal via drive namesPallets Werkzeug before 0.15.5 mishandles drive names such as C: in Windows pathnames within SharedDataMiddleware, allowing path traversal. Because W…EPSS 56%analysed6.9CVE-2024-49767Palletsprojects quart uncontrolled resource consumption vulnerabilityWerkzeug is a Web Server Gateway Interface web application library. Applications using `werkzeug.formparser.MultiPartParser` corresponding to a versi…EPSS 1.1%6.3CVE-2026-21860Palletsprojects werkzeug vulnerabilityWerkzeug is a comprehensive WSGI web application library. Prior to version 3.1.5, Werkzeug's safe_join function allows path segments with Windows dev…EPSS 0.48%

Source: NIST National Vulnerability Database (record CVE-2026-27199), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.