CVE-2026-102598
MEDIUM 6.3CVSS 4.0Werkzeug safe_join() allows Windows special device names
Werkzeug is a comprehensive WSGI web application library. Prior to 3.1.9, the safe_join function used by send_from_directory can allow a NUL: special-device path because safe_join checks the Windows device name without first removing an empty NTFS ADS marker. The trigger is that an application runs on Windows with NTFS and serves a user-specified path ending in a special device name such as NUL:. The attack mechanism is that a requested path ends in a Windows special device name with an empty ADS marker. The impact is that the special device opens successfully and the file read hangs indefinitely. This issue is fixed in version 3.1.9.
- Published
- 29 Sep 2026
- Last modified
- 15 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-67
- Also known as
- GHSA-g6x2-hccm-hh4mPYSEC-2026-4312
- Sources
- NVDJSONOSV GHSA-g6x2-hccm-hh4mJSONOSV PYSEC-2026-4312JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | 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/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 | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | werkzeug | < 3.1.9 | 3.1.9 |
References
- https://github.com/pallets/werkzeug/commit/8d77320bcdf3a34941ec06dcf16b03c065cd21b6 · WEB
- https://github.com/pallets/werkzeug/pull/3309 · WEB
- https://github.com/pallets/werkzeug/releases/tag/3.1.9 · WEB
- https://github.com/pallets/werkzeug/security/advisories/GHSA-g6x2-hccm-hh4m · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-102598 · ADVISORY
- https://github.com/pallets/werkzeug · PACKAGE
- https://pypi.org/project/werkzeug · PACKAGE
- https://github.com/advisories/GHSA-g6x2-hccm-hh4m · ADVISORY
History
- 25 Nov 2026 21:21 UTC · NVD: first stored (published 29 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Oct 2026)