Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-102598 EUVD-2026-88980GHSA-g6x2-hccm-hh4mPYSEC-2026-4312

Werkzeug safe_join() allows Windows special device names

Published Sep 29, 2026 · Updated Sep 29, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
pallets werkzeug < 3.1.9 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-werkzeug No fix yet —
Ubuntu 26.04 LTS python-werkzeug No fix yet —
Ubuntu 24.04 LTS python-werkzeug No fix yet —
Ubuntu 22.04 LTS python-werkzeug No fix yet —
Ubuntu 20.04 LTS python-werkzeug No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS python-werkzeug No fix yet —
Ubuntu Pro 16.04 LTS python-werkzeug No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Werkzeug 3.1.9-1.1 openSUSE-SU-2026:11943-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 tensorflow +2 No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3.13-ambassador 4.1.0-r19 —
Wolfi rolling superset-6.0 6.0.0-r20 —
Wolfi rolling superset-6.1 6.1.0-r14 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI werkzeug < 3.1.9 3.1.9 GHSA-g6x2-hccm-hh4m

Advisories 1

References