CVE-2026-102598
Werkzeug is a comprehensive WSGI web application library. Prior to …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/pallets/werkzeug/commit/8d77320bcdf3a34941ec06dcf16b03c065cd21b6
- github.com/pallets/werkzeug/pull/3309
- github.com/pallets/werkzeug/releases/tag/3.1.9
- github.com/pallets/werkzeug/security/advisories/GHSA-g6x2-hccm-hh4m
- nvd.nist.gov/vuln/detail/CVE-2026-102598
- github.com/advisories/GHSA-g6x2-hccm-hh4m
- nvd.nist.gov/vuln/detail/CVE-2026-102598
- cve.org/CVERecord?id=CVE-2026-102598
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.