CVE-2025-66221

MEDIUM CVSS 4.0: 6.3 EPSS 0.55%
Updated Oct 07, 2026
Palletsprojects
Parameter Value
CVSS 6.3 (MEDIUM)
Affected Versions before 3.1.4
Fixed In 3.1.4
Type CWE-67 (Improper Handling of Windows Device Names)
Vendor Palletsprojects
Public PoC No

Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.4, Werkzeug's safe_join function allows path segments with Windows device names. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. 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 patched in version 3.1.4.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
Low
Partial disruption

CVSS Vector v4.0

Vulnerable Products 2

Configuration From (including) Up to (excluding)
Palletsprojects Werkzeug
cpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:*
— 3.1.4
Microsoft Windows
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
— —