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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (14th 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-14151620
  • published30 Nov 2025
  • disclosed29 Nov 2025
  • creditOblivionsage

Introduced: 29 Nov 2025

NewCVE-2025-66221  (opens in a new tab)
CWE-67  (opens in a new tab)

How to fix?

Upgrade werkzeug to version 3.1.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Handling of Windows Device Names via the safe_join function. An attacker can cause the application to hang indefinitely by requesting a path ending with a Windows special device name, e.g. CON or NUL.

Note: This is only vulnerable on Windows, where special device names are implicitly present in every directory.

References

CVSS Base Scores

version 4.0
version 3.1