# CVE-2025-66645: NiceGUI Path Traversal Vulnerability in app.add_media_files() Allows Arbitrary File Reading

- 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:H/I:N/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): 1.20%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-09T14:25:15.000Z
- Modified: 2026-10-14T21:10:00.183Z
- Also known as: GHSA-hxp3-63hc-5366, PYSEC-2026-1700
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

NiceGUI is a Python-based UI framework. Versions 3.3.1 and below are vulnerable to  directory traversal through the App.add_media_files() function, which allows a remote attacker to read arbitrary files on the server filesystem. This issue is fixed in version 3.4.0.

(As written by CVE List.)

## Affected

- zauberzeug nicegui: < 3.4.0; before 3.4.0
- nicegui (PyPI): before 3.4.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:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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:H/I:N/A:N`

## References

- <https://github.com/zauberzeug/nicegui/security/advisories/GHSA-hxp3-63hc-5366> (exploit, vendor-advisory, web)
- <https://github.com/zauberzeug/nicegui/commit/a1b89e2a24e1911a40389ace2153a37f4eea92a9> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66645> (advisory)
- <https://github.com/zauberzeug/nicegui> (package)
- <https://pypi.org/project/nicegui> (package)
- <https://github.com/advisories/GHSA-hxp3-63hc-5366> (advisory)

## Sources

- CVE List: [CVE-2025-66645](https://www.cve.org/CVERecord?id=CVE-2025-66645), CVE Terms of Use, modified 2025-12-10
- GitHub Advisory Database: [GHSA-hxp3-63hc-5366](https://github.com/advisories/GHSA-hxp3-63hc-5366), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-66645](https://nvd.nist.gov/vuln/detail/CVE-2025-66645), Public domain, modified 2026-10-14
- PyPA Advisory Database: [PYSEC-2026-1700](https://osv.dev/vulnerability/PYSEC-2026-1700), CC-BY-4.0, modified 2026-07-07

---

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