NiceGUI
NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.7.0
Fixed in 3.7.0
Mitigation
Upgrade nicegui to 3.7.0 or later.
References
- Vendor advisory github.com/zauberzeug/nicegui/security/advisor…
Timeline
Days relative to CVE publicationFirst public PoC 1.5 days after publication; not in CISA KEV. First PoC: mbanyamer/CVE-2026-25732-NiceGUI-3.6.1 (created 8 Feb 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| mbanyamer/CVE-2026-25732-NiceGUI-3.6.1 | 8 Feb 2026 +1.5 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | NiceGUI 3.6.1 - Path Traversal | 30 Apr 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST ///
- Body markers
name="file"inmultipart/form-data- Ports
- 8080
- Seen in
- 1 repo: mbanyamer/CVE-2026-25732-NiceGUI-3.6.1
- Evidence
- mbanyamer/CVE-2026-25732-NiceGUI-3.6.1/exploit_cve_2026_25732.py:53
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^///(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-25732 zauberzeug nicegui exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:"name=|22|file|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-25732; classtype:web-application-attack; sid:9581359; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: zauberzeug nicegui exploit attempt (CVE-2026-25732)
id: gg-pocmon-cve-2026-25732-9581359
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25732. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-25732
logsource:
category: webserver
detection:
selection:
cs-method: POST
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.25732