Skip to main content
← All vulnerabilities
CVE-2026-102598GHSA-G6X2-HCCM-HH4MPYSEC-2026-4312

Werkzeug safe_join() allows Windows special device names

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.9
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • pallets werkzeug

    fixed in 3.1.9

  • werkzeugPyPI

    fixed in 3.1.9

References 4

GitHub · pallets/werkzeug