
CVE catalog
CVE-2026-21860
python-werkzeug: CVE-2026-21860
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.47% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-werkzeug | sid | 3.1.9-1 | not affected |
| Debian | python-werkzeug | forky | 3.1.9-1 | not affected |
| Debian | python-werkzeug | trixie | 3.1.3-2 | not affected |
| Debian | python-werkzeug | bookworm | 2.2.2-3+deb12u1 | not affected |
| PyPI | werkzeug | Not reported | 3.1.5 | fixed |
| Alpine | py3-werkzeug | 3.24 | 3.1.5-r0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-werkzeug | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | python-werkzeug | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | python-werkzeug | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | python-werkzeug | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| PyPI | werkzeug | PyPI | Not reported | 3.1.5 | Not reported | GHSA-87HC-H4R5-73F7 | Not reported |
| Alpine | py3-werkzeug | apk | 3.24 | 3.1.5-r0 | Not reported | ALPINE-CVE-2026-21860 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-werkzeug]Not affected
Source package: [python-werkzeug]
Details (2)
2.2.2-3+deb12u1· all · bookwormNot affected
dsa · python-werkzeug · debian · bookworm
2.2.2-3+deb12u1· all · bookwormNot affected
dsa · python-werkzeug · debian · bookworm
- [python-werkzeug-doc]Not affected
Source package: [python-werkzeug]
Details (2)
2.2.2-3+deb12u1· all · bookwormNot affected
dsa · python-werkzeug · debian · bookworm
2.2.2-3+deb12u1· all · bookwormNot affected
dsa · python-werkzeug · debian · bookworm
Observed:
References
- [https://osv.dev/vulnerability/ALPINE-CVE-2026-21860]
- [https://osv.dev/vulnerability/GHSA-87hc-h4r5-73f7]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-21860]
- [https://security-tracker.debian.org/tracker/CVE-2026-21860]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2933.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database]