CVE-2026-25732 | NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write

Exp

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.

Published: 2026-02-06 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2026-25732 is rated High Exploit Risk (77/100): CVSS High severity, with medium exploitation likelihood (EPSS 3.21%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +1.74% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2026-25732

EDB-ID Source Kind Published Link
52534 exploit_db edb 2026-04-30 Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2026-25732

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 1.47% 3.21% +1.74%
2 2026-06-08 1.38% 1.47% +0.09%
3 2026-05-01 1.38%

Full EPSS history (7 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2026-25732

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2026-25732

GitHub Security Advisory for CVE-2026-25732

GHSA-9ffm-fxg3-xrhh · Severity: high · Ecosystem: pip — NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write

Affected software / configurations for CVE-2026-25732

Vendor Product Version Raw CPE
zauberzeug nicegui < 3.7.0 cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:*

References for CVE-2026-25732

cvelogic Threat Intelligence