CVE-2025-66221: pallets werkzeug
Vulnerability summary
CVE-2025-66221 is a medium (CVSS 6.3) vulnerability in pallets werkzeug. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 42.2% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 8Timeline
- 29-11-2025PublishedVulnerability first disclosed.
- 01-12-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
9 scores · 7 sources · 2 versions- OSV · PypiEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · UbuntuEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- NVDNIST6.3MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.51%
Chance of exploitation in the next 30 days
Percentile
42%
Versus all other CVEs
30-day change
0.00 pp
From 0.51% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard32 products
- airflow-2All versions (No fix recorded)
- airflow-2-bitnami-compatAll versions (No fix recorded)
- airflow-2-compatAll versions (No fix recorded)
- airflow-2-iamguarded-compatAll versions (No fix recorded)
- airflow-3All versions (No fix recorded)
Wolfi13 products
- airflow-3All versions (No fix recorded)
- airflow-3-bitnami-compatAll versions (No fix recorded)
- emissaryAll versions (No fix recorded)
- emissary-apiextAll versions (No fix recorded)
- emissary-oci-entrypointAll versions (No fix recorded)
Alpine1 product
- py3-werkzeug< 3.1.4-r0
Opensuse1 product
- python-openapi-core&distro=openSUSE Tumbleweed< 0.22.0-1.1
Pallets1 product
- werkzeug< 3.1.4
Palletsprojects1 product
- werkzeug< 3.1.4
PyPI1 product
- werkzeug< 3.1.4
Ubuntu1 product
- python-werkzeugAll versions (No fix recorded)
8 vendors · 51 products
References
12 links- github.com/pallets/werkzeug/security/advisories/GHSA-hgf8-39gv-g3f2X Refsource CONFIRMWEBREPORTAdvisoryVendor Advisory
- github.com/pallets/werkzeug/commit/4b833376a45c323a189cd11d2362bcffdb1c0c13X Refsource MISCWEBREPORTFIXPatch
- github.com/pallets/werkzeugPACKAGE
- pypi.org/project/werkzeugPACKAGE