Improper Handling of Windows Device Names Affecting werkzeug package, versions [,3.1.9)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.37% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-WERKZEUG-20305246
  • published30 Sept 2026
  • disclosed29 Sept 2026
  • creditUnknown

Introduced: 29 Sep 2026

NewCVE-2026-102598  (opens in a new tab)
CWE-67  (opens in a new tab)

How to fix?

Upgrade werkzeug to version 3.1.9 or higher.

Overview

Affected versions of this package are vulnerable to Improper Handling of Windows Device Names via safe_join on Windows, which fails to block special Windows device names (e.g. CON, NUL, AUX) when an empty Alternate Data Stream (ADS) marker (:) is appended to the name. An attacker can supply a path component such as CON: that bypasses the device-name check, causing the application to crash when the path is accessed on an NTFS filesystem.

Note: This is only exploitable on Windows hosts running on NTFS.

CVSS Base Scores

version 4.0
version 3.1