Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2026-25732 EUVD-2026-5568GHSA-9ffm-fxg3-xrhhPYSEC-2026-95

NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write

Published Feb 6, 2026 · Updated Feb 9, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
zauberzeug nicegui < 3.7.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nicegui < 3.7.0 3.7.0 GHSA-9ffm-fxg3-xrhh

References