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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.38%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-05T21:08:53.000Z
- Modified: 2026-06-17T10:25:07.703Z
- Also known as: GHSA-9ffm-fxg3-xrhh, PYSEC-2026-95
- Weaknesses: CWE-22, CWE-601
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- zauberzeug nicegui: < 3.7.0; before 3.7.0
- nicegui (PyPI): before 3.7.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/zauberzeug/nicegui/security/advisories/GHSA-9ffm-fxg3-xrhh> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L110-L115> (fix, patch, web)
- <https://github.com/zauberzeug/nicegui/blob/main/nicegui/elements/upload_files.py#L79-L82> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25732> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/nicegui/PYSEC-2026-95.yaml> (web)
- <https://github.com/zauberzeug/nicegui> (package)

## Sources

- CVE List: [CVE-2026-25732](https://www.cve.org/CVERecord?id=CVE-2026-25732), CVE Terms of Use, modified 2026-02-09
- GitHub Advisory Database: [GHSA-9ffm-fxg3-xrhh](https://github.com/advisories/GHSA-9ffm-fxg3-xrhh), CC-BY-4.0, modified 2026-06-06
- NVD: [CVE-2026-25732](https://nvd.nist.gov/vuln/detail/CVE-2026-25732), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-95](https://osv.dev/vulnerability/PYSEC-2026-95), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2026-25732 · Whole record: https://cve.day/CVE-2026-25732.json · Rebuilt by cve.day 2026-11-25T22:59:13.585Z
