# CVE-2026-39844: NiceGUI has a Path Traversal in NiceGUI Upload Filename on Windows via Backslash Bypass of PurePosixPath Sanitization

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/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): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-04-08T15:04:13.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-w8wv-vfpc-hw2w, PYSEC-2026-2234
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

NiceGUI is a Python-based UI framework. Prior to 3.10.0, Since PurePosixPath only recognizes forward slashes (/) as path separators, an attacker can bypass this sanitization on Windows by using backslashes (\) in the upload filename. Applications that construct file paths using file.name (a pattern demonstrated in NiceGUI's bundled examples) are vulnerable to arbitrary file write on Windows. This vulnerability is fixed in 3.10.0.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: 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-w8wv-vfpc-hw2w> (advisory, vendor-advisory, web)
- <https://github.com/zauberzeug/nicegui/commit/d38a702e3af2da5b0708f689be8d71413fc77056> (fix, patch, web)
- <https://github.com/zauberzeug/nicegui/releases/tag/v3.10.0> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39844> (advisory)
- <https://github.com/zauberzeug/nicegui> (package)

## Sources

- CVE List: [CVE-2026-39844](https://www.cve.org/CVERecord?id=CVE-2026-39844), CVE Terms of Use, modified 2026-04-09
- GitHub Advisory Database: [GHSA-w8wv-vfpc-hw2w](https://github.com/advisories/GHSA-w8wv-vfpc-hw2w), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-39844](https://nvd.nist.gov/vuln/detail/CVE-2026-39844), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2234](https://osv.dev/vulnerability/PYSEC-2026-2234), CC-BY-4.0, modified 2026-07-13

---

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