---
schema_version: '1.0'
id: security-20260812-afa54c
title: CVE-2026-25732 — nicegui
url: https://osv.dev/vulnerability/PYSEC-2026-95
url_hash: afa54c3bc33ede20bb7666d63529d8cfa2d1cecbdde1c167c98e57510b6be7f5
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-95
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-25732
- PYSEC-2026-95
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- nicegui
- PyPI
lang: en
published_at: '2026-02-06T22:16:11Z'
fetched_at: '2026-08-12T16:00:04.526672Z'
updated_at: '2026-08-22T14:45:12Z'
status: published
content_hash: 22feaff5dee3c19df6404e5b44abf4df099bdbb943fdb6eb202b98c6db52f977
content_changed_at: '2026-08-22T13:15:21.615334Z'
license_note: full
summary: 'NiceGUI is a Python-based UI framework. Prior to 3.7.0, NiceGUI''s FileUpload.name
  property exposes client-supplied filename metadata without sanitization, enabling
  path traversal when developers use the pattern UPLOAD_DIR / file.name. Malicious
  filenames containing ../ sequences '
summary_source: rss
summary_en: 'NiceGUI is a Python-based UI framework. Prior to 3.7.0, NiceGUI''s FileUpload.name
  property exposes client-supplied filename metadata without sanitization, enabling
  path traversal when developers use the pattern UPLOAD_DIR / file.name. Malicious
  filenames containing ../ sequences '
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-25732
- library vulnerability
- nicegui
- PyPI
- PYSEC-2026-95
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- software security
entities_en:
- name: CVE
  type: data
- name: PyPI
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: PyPI
  type: artifact
related_auto:
- name: Portal
  type: organization
  weight: 1.0
- name: Hugging Face
  type: organization
  weight: 1.0
computed_at: '2026-08-22T14:45:07Z'
---

# CVE-2026-25732 — nicegui

## TL;DR
NiceGUI is a Python-based UI framework. Prior to 3.7.0, NiceGUI's FileUpload.name property exposes client-supplied filename metadata without sanitization, enabling path traversal when developers use the pattern UPLOAD_DIR / file.name. Malicious filenames containing ../ sequences 

## Key Points
- cve / CVE-2026-25732 / PYSEC-2026-95 / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N / nicegui / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
**Advisory:** PYSEC-2026-95 (CVE-2026-25732)

**Details:**
NiceGUI is a Python-based UI framework. Prior to 3.7.0, NiceGUI's FileUpload.name property exposes client-supplied filename metadata without sanitization, enabling path traversal when developers use the pattern UPLOAD_DIR / file.name. Malicious filenames containing ../ sequences allow attackers to write files outside intended directories, with potential for remote code execution through application file overwrites in vulnerable deployment patterns. This design creates a prevalent security footgun affecting applications following common community patterns. Note: Exploitation requires application code incorporating file.name into filesystem paths without sanitization. Applications using fixed paths, generated filenames, or explicit sanitization are not affected. This vulnerability is fixed in 3.7.0.

**References:**
- https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L110-L115
- https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L79-L82
- https://github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-95_

## Source
元記事: [CVE-2026-25732 — nicegui](https://osv.dev/vulnerability/PYSEC-2026-95) — published 2026-02-06T22:16:11Z
