CVE Explorer
CVE-2026-21860
Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.5, Werkzeug's safe_join function allows path segments with Windows device names that have file extensions or trailing spaces. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. Windows still accepts them with any file extension, such as CON.txt, or trailing spaces such as CON. This issue has been patched in version 3.1.5.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"werkzeug","vendor":"pallets","versions":[{"status":"affected","version":"< 3.1.5"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:9da99cef3edf739da387d5a4dfd72a4339977ed5e5148f7cf899b052eedbf0a5 · sha256:2800df968fb60c91… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:9da99cef3edf739da387d5a4dfd72a4339977ed5e5148f7cf899b052eedbf0a5 · sha256:2800df968fb60c91… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-67","description":"CWE-67: Improper Handling of Windows Device Names","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:9da99cef3edf739da387d5a4dfd72a4339977ed5e5148f7cf899b052eedbf0a5 · sha256:2800df968fb60c91… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/pallets/werkzeug/commit/7ae1d254e04a0c33e241ac1cca4783ce6c875ca3","tags":["x_refsource_MISC"],"url":"https://github.com/pallets/werkzeug/commit/7ae1d254e04a0c33e241ac1cca4783ce6c875ca3"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9da99cef3edf739da387d5a4dfd72a4339977ed5e5148f7cf899b052eedbf0a5 · sha256:2800df968fb60c91… · /containers/cna/references/1
{"name":"https://github.com/pallets/werkzeug/security/advisories/GHSA-87hc-h4r5-73f7","tags":["x_refsource_CONFIRM"],"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-87hc-h4r5-73f7"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:9da99cef3edf739da387d5a4dfd72a4339977ed5e5148f7cf899b052eedbf0a5 · sha256:2800df968fb60c91… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.