Vulnerability GHSA-g6x2-hccm-hh4m

Medium Risk
MEDIUM RISK
CVSS Score: 6.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
7 hours ago
October 05, 2026 at 11:48 PM UTC
Werkzeug safe_join() allows Windows special device names
0.1 - 3.1.8
0.1 - 3.1.8

Summary

Werkzeug safe_join() allows Windows special device names

Details

Werkzeug's safe_join function allows Windows device names as filenames when they have an empty ADS marker on NTFS.

This was previously reported as https://github.com/pallets/werkzeug/security/advisories/GHSA-hgf8-39gv-g3f2, but the added filtering failed to account for the fact Windows allows special device names with an empty ADS marker, such as NUL:.

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 NTFS, and the requested path ends with a special device name, the file will be opened successfully, but reading will hang indefinitely.

Impacted packages

Timeline

Published
7 hours ago
October 05, 2026 at 11:48 PM UTC
Fixed (3.1.9)
8 days ago
September 27, 2026 at 06:33 PM UTC
Last Modified
7 hours ago
October 06, 2026 at 12:00 AM UTC