Skip to main content

Werkzeug EUVDEUVD-2026-88980

| CVE-2026-102598 MEDIUM
Improper Handling of Windows Device Names (CWE-67)
2026-09-29 GitHub_M GHSA-g6x2-hccm-hh4m
6.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Windows/NTFS Flask app serving user paths
  2. Delivery
    Send HTTP request for path ending in 'NUL:'
  3. Exploit
    safe_join fails to strip empty ADS marker
  4. Execution
    Special device opened, read hangs worker
  5. Impact
    Repeat to exhaust worker pool and deny service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Improper handling of Windows device names
Exploitation Conditions

Exploitation requires ALL of: (1) the application is deployed on Windows on an NTFS filesystem; (2) it uses Werkzeug's send_from_directory / safe_join to serve a path derived from user input; and (3) the attacker controls a trailing path segment so it can be a Windows special device name (NUL, CON, AUX, PRN, COM1-9, LPT1-9) followed by an empty NTFS ADS marker, e.g. 'NUL:'. This is the AT:P requirement in the CVSS 4.0 vector - the flaw is unreachable on Linux/macOS deployments (the common Flask production case) and unreachable if the app does not serve user-controlled filenames. No authentication or user interaction is required (PR:N/UI:N) once those deployment conditions hold. The limiting factors are the Windows-plus-NTFS-plus-user-path preconditions, which sharply narrow the realistically vulnerable population.

Impact

This is a genuine but low-severity availability issue, not a high-risk emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L) scores 6.3 but the only impact is VA:L - a request-handling hang with zero confidentiality or integrity effect, so the 'Information Disclosure' tag in the input is factually wrong (this is a denial-of-service, not a data leak). The critical de-rating signal is AT:P (attack requirement present): exploitation is possible ONLY when the application runs on Windows with an NTFS filesystem AND serves user-controlled paths through send_from_directory/safe_join. Werkzeug/Flask is overwhelmingly deployed on Linux in production, where this bug is not reachable, so real-world exposure is a narrow slice of an otherwise huge install base. No EPSS score, no CISA KEV listing, and no public exploit code were provided - this is a coordinated GitHub Security Advisory (GHSA-g6x2-hccm-hh4m) with a confirmed fix, indicating responsible disclosure rather than observed attacks. No conflicting vector/description signals: the network attack vector is consistent with an HTTP-served path, and the local-device hang is the described mechanism. Exploitation status: no public exploit identified at time of analysis.

Exploit ScenarioDerived

A Windows-hosted Flask/Werkzeug app that serves user-requested filenames from a directory (e.g. via send_from_directory) receives an HTTP request whose path component ends in a Windows special device name with an empty NTFS ADS marker, such as 'NUL:'. safe_join fails to reject it because it checked the device name before stripping the ADS ':' marker, so the app opens the special device and the read hangs indefinitely, tying up the worker; repeating this can exhaust the worker pool and deny service. No public proof-of-concept was provided in the intelligence.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 29, 2026

A user-controlled request path that ends in a Windows reserved device name followed by an empty NTFS alternate data stream marker (for example "NUL:") causes Werkzeug's send_from_directory / safe_join helper to open the special device successfully and then block indefinitely, hanging the handling worker. The flaw only manifests on Windows deployments running on NTFS where an application serves attacker-influenced filenames through Werkzeug prior to 3.1.9; Linux and macOS deployments, which are the typical Flask/Werkzeug production case, are unreachable by this condition. There is no confirmed active exploitation (CISA KEV) and no public exploit code identified at time of analysis, and the assessed impact is limited availability loss rather than data exposure or code execution. Vendor-released patch: 3.1.9.

RemediationAI

Upgrade to Werkzeug 3.1.9, which strips an empty NTFS ADS marker before the Windows device-name blocklist comparison; the change is isolated to safe_join in src/werkzeug/security.py and is low-risk to adopt. If an immediate upgrade is not possible, reject or normalize request paths before they reach send_from_directory - for example, deny any filename segment containing ":" or matching the reserved device names (CON, PRN, AUX, NUL, COM1-9, LPT1-9) case-insensitively, with the trade-off that legitimate filenames containing colons on other platforms will be refused; alternatively resolve filenames against an application-generated allow-list or identifier map rather than passing user input through safe_join, at the cost of a schema change in the request format. Serving files from a non-Windows host, or from a non-NTFS volume, also removes the precondition entirely. Because the failure mode is a hung worker rather than a crash, additionally configure worker timeouts and concurrency limits so a single stuck request cannot exhaust the WSGI worker pool, though this only limits blast radius and does not fix the defect. Vendor references: https://github.com/pallets/werkzeug/security/advisories/GHSA-g6x2-hccm-hh4m, https://github.com/pallets/werkzeug/pull/3309, and https://github.com/pallets/werkzeug/releases/tag/3.1.9.

Affected VersionsENISA

werkzeug < 3.1.9

Affected Packages

pypi werkzeug fix: 3.1.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Werkzeug is the reference WSGI utility library underpinning Flask and many Python web stacks; safe_join() is its path-traversal guard used by helpers such as send_from_directory() to confine a user-supplied relative path inside a base directory. The root cause is CWE-67 (Improper Handling of Windows Device Names): the pre-3.1.9 check normalized candidate path segments by partitioning on "." before comparing against the internal _windows_device_files list. Because it never stripped a leading NTFS alternate data stream separator, a path component such as "NUL:" produced a comparison key ("NUL:") that did not match the device-name blocklist, so validation passed. On Windows/NTFS the segment then resolves to the legacy DOS special device, which opens successfully instead of returning an error, and the subsequent read blocks forever. The fix in commit 8d77320bcdf3a34941ec06dcf16b03c065cd21b6 (PR #3309, released in 3.1.9) changes the normalization to p.partition(":")[0].partition(".")[0].strip().upper(), stripping an empty ADS marker before the device-name lookup. The affected component is identified by CPE cpe:2.3:a:pallets:werkzeug:*:*:*:*:*:*:*:*, i.e. essentially all Werkzeug builds prior to the 3.1.9 branch; the independent assessment rates this CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L, and the AT:P (Attack Requirements: Present) element of the upstream CVSS 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) encodes exactly the Windows-plus-NTFS-plus-attacker-controlled-path precondition. No authentication is required per the vector (PR:N) and no user interaction is needed (UI:N), but the platform precondition sharply narrows the exposed population.

Know when Werkzeug gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

Remote unauthenticated HTTP request (AV:N/PR:N/UI:N); AC:H folds in the mandatory Windows+NTFS deployment requirement (the 4.0 AT:P); impact is only an availability hang, so C:N/I:N/A:L.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Sep 29, 2026 - 16:02 EUVD
CVE Published
Sep 29, 2026 - 15:16 cve.org
MEDIUM 6.3

DescriptionCVE.org

Werkzeug is a comprehensive WSGI web application library. Prior to 3.1.9, the safe_join function used by send_from_directory can allow a NUL: special-device path because safe_join checks the Windows device name without first removing an empty NTFS ADS marker. The trigger is that an application runs on Windows with NTFS and serves a user-specified path ending in a special device name such as NUL:. The attack mechanism is that a requested path ends in a Windows special device name with an empty ADS marker. The impact is that the special device opens successfully and the file read hangs indefinitely. This issue is fixed in version 3.1.9.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 19,820 pypi packages depend on werkzeug (1,355 direct, 18,711 indirect)

Ecosystem-wide dependent count for version 3.1.9.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
High
Werkzeug is the WSGI core behind Flask, one of the most-deployed Python web frameworks
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2024-34069 HIGH POC
7.5 May 06

Werkzeug is a comprehensive WSGI web application library. Rated high severity (CVSS 7.5), this vulnerability is remotely

CVE-2019-14322 HIGH POC
7.5 Jul 28

In Pallets Werkzeug before 0.15.5, SharedDataMiddleware mishandles drive names (such as C:) in Windows pathnames. Rated

CVE-2020-28724 MEDIUM POC
6.1 Nov 18

Open redirect vulnerability in werkzeug before 0.11.6 via a double slash in the URL. Rated medium severity (CVSS 6.1), t

CVE-2022-29361 CRITICAL
9.8 May 25

Improper parsing of HTTP requests in Pallets Werkzeug v2.1.0 and below allows attackers to perform HTTP Request Smugglin

CVE-2023-46136 HIGH
8.0 Oct 25

Werkzeug is a comprehensive WSGI web application library. Rated high severity (CVSS 8.0), this vulnerability is low atta

CVE-2023-25577 HIGH
7.5 Feb 14

Werkzeug is a comprehensive WSGI web application library. Rated high severity (CVSS 7.5), this vulnerability is remotely

CVE-2019-14806 HIGH
7.5 Aug 09

Pallets Werkzeug before 0.15.3, when used with Docker, has insufficient debugger PIN randomness because Docker container

CVE-2025-66221 MEDIUM
6.3 Nov 29

Werkzeug is a comprehensive WSGI web application library. Rated medium severity (CVSS 6.3), this vulnerability is remote

CVE-2024-49766 MEDIUM
6.3 Oct 25

Werkzeug is a Web Server Gateway Interface web application library. Rated medium severity (CVSS 6.3), this vulnerability

CVE-2016-10516 MEDIUM
6.1 Oct 23

Cross-site scripting (XSS) vulnerability in the render_full function in debug/tbtools.py in the debugger in Pallets Werk

CVE-2026-27199 MEDIUM
5.3 Feb 21

Werkzeug versions 3.1.5 and below on Windows fail to properly filter reserved device names in the safe_join function whe

CVE-2026-21860 MEDIUM
5.3 Jan 08

Werkzeug versions prior to 3.1.5 fail to properly validate Windows reserved device names in the safe_join function, allo

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy