Skip to main content
VulnerabilityPublished

CVE-2025-66221: Werkzeug safe_join() allows Windows special device names

Affects werkzeugSource GCVE Database

0
Compare
Authoritative record:CVE-2025-66221· Medium 6.3

Not known to be exploited · CVSS 6.3 Medium : upgrade to 3.1.4 when convenient.

Data as of 21 Nov 2026, 03:45 UTC

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.06.3
Patch
Available – fixed in 3.1.4
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.

What to do

Upgrade werkzeug to 3.1.4.

Affected software

ProductAffectedFixed in
PyPIwerkzeugAffected
  • <3.1.4
Fixed in
  • 3.1.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Werkzeug to version 3.1.4 or later, where this issue is fixed. No other mitigation is required as the patch addresses the vulnerability directly.

Description

Werkzeug's safe_join function improperly allows Windows special device names such as CON and AUX as path segments. On Windows systems, these device names exist implicitly in every directory. When used with send_from_directory, a request ending with a special device name will open the file but cause the read operation to hang indefinitely. This affects Werkzeug versions prior to 3.1.4.

References

Community reviews

Loading reviews…