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
Configurations
History
20 Feb 2026, 15:44
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Zauberzeug
Zauberzeug nicegui |
|
| References | () https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L110-L115 - Patch | |
| References | () https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L79-L82 - Patch | |
| References | () https://github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh - Exploit, Mitigation, Vendor Advisory | |
| CPE | cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:* |
06 Feb 2026, 22:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-02-06 22:16
Updated : 2026-02-20 15:44
NVD link : CVE-2026-25732
Mitre link : CVE-2026-25732
CVE.ORG link : CVE-2026-25732
JSON object : View
Products Affected
zauberzeug
- nicegui
CWE
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
