---
schema_version: '1.0'
id: security-20261006-152b01
title: 'CVE-2026-102598: Werkzeug safe_join() allows Windows special device names'
url: https://osv.dev/vulnerability/GHSA-g6x2-hccm-hh4m
url_hash: 152b01fb0dbbb112d4561abdbbcc26bb37bee5cccc51517178ffcd1c38024753
canonical_url: https://osv.dev/vulnerability/GHSA-g6x2-hccm-hh4m
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-102598
- GHSA-g6x2-hccm-hh4m
- severity: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
- werkzeug
- PyPI
lang: en
published_at: '2026-10-05T23:48:39Z'
fetched_at: '2026-10-06T04:19:46.979266Z'
updated_at: '2026-10-06T04:26:47Z'
status: published
content_hash: 0aa6126470b042dbcb86e11dea14d7eb17137c8772b1eb7dde541b7e9335680f
content_changed_at: null
license_note: full
summary: Werkzeug safe_join() allows Windows special device names
summary_source: rss
summary_en: Werkzeug safe_join() allows Windows special device names
summary_omitted_reason: null
redistribution: true
keywords_en:
- allows
- cve
- CVE-2026-101918
- CVE-2026-102598
- device
- GHSA-g6x2-hccm-hh4m
- Joint Task Force (North East
- library vulnerability
- names
- PyPI
- Safe.co.uk
- safe_join
- severity: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
- software security
- special
- Tokyo Yakult Swallows
- werkzeug
- Windows
entities_en:
- name: CVE-2026-101918
  type: event
- name: Joint Task Force (North East
  type: organization
- name: Safe.co.uk
  type: organization
- name: Tokyo Yakult Swallows
  type: organization
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2026-101918
  type: event
- name: Safe.co.uk
  type: organization
- name: Joint Task Force (North East
  type: organization
- name: Tokyo Yakult Swallows
  type: organization
key_facts: []
related: []
related_auto:
- name: CVE-2026-102268
  type: event
  weight: 7.8
- name: Anthony Neary
  type: person
  weight: 1.0
- name: Yasuhara Tetsu
  type: person
  weight: 1.0
computed_at: '2026-10-06T04:26:46Z'
---

# CVE-2026-102598: Werkzeug safe_join() allows Windows special device names

## TL;DR
Werkzeug safe_join() allows Windows special device names

## Key Points
- cve / CVE-2026-102598 / GHSA-g6x2-hccm-hh4m / severity: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 / werkzeug / PyPI

## Details
**Severity:** 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
**Advisory:** GHSA-g6x2-hccm-hh4m (CVE-2026-102598)

**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.

**References:**
- https://github.com/pallets/werkzeug/security/advisories/GHSA-g6x2-hccm-hh4m
- https://nvd.nist.gov/vuln/detail/CVE-2026-102598
- https://github.com/pallets/werkzeug/pull/3309
- https://github.com/pallets/werkzeug/commit/8d77320bcdf3a34941ec06dcf16b03c065cd21b6
- https://github.com/pallets/werkzeug
- https://github.com/pallets/werkzeug/releases/tag/3.1.9

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-g6x2-hccm-hh4m_

## Source
元記事: [CVE-2026-102598: Werkzeug safe_join() allows Windows special device names](https://osv.dev/vulnerability/GHSA-g6x2-hccm-hh4m) — published 2026-10-05T23:48:39Z
