CVE-2024-32005: NiceGUI allows potential access to local file system
NiceGUI is an easy-to-use, Python-based UI framework. A local file inclusion is present in the NiceUI leaflet component when requesting resource files under the /nicegui/{version}/resources/{key}/{path:path} route. As a result any file on the backend filesystem which the web server has access to can be read by an attacker with access to the NiceUI leaflet website.
Published Apr 12, 2024 · Updated Apr 15, 2024
Affected packages
nicegui
- Ecosystem
- PyPI
- Affected
- >= 1.4.6, < 1.4.21
- Fixed in
- 1.4.21
- Check
pip show nicegui
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
NiceGUI is an easy-to-use, Python-based UI framework. A local file inclusion is present in the NiceUI leaflet component when requesting resource files under the /_nicegui/{__version__}/resources/{key}/{path:path} route.
As a result any file on the backend filesystem which the web server has access to can be read by an attacker with access to the NiceUI leaflet website.
This vulnerability has been addressed in version 1.4.21. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Credited to sunriseXu.
References
- https://github.com/zauberzeug/nicegui/security/advisories/GHSA-mwc7-64wg-pgvj
- https://github.com/zauberzeug/nicegui/commit/ed12eb14f2a6c48b388a05c04b3c5a107ea9d330
- https://nvd.nist.gov/vuln/detail/CVE-2024-32005
- https://huntr.com/bounties/29ec621a-bd69-4225-ab0f-5bb8a1d10c67
- https://github.com/advisories/GHSA-mwc7-64wg-pgvj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-45553
NiceGUI: Local file disclosure via Docutils file insertion in ui.restructured_text()
high7.5May 18, 2026CVE-2026-45554
NiceGUI: Unauthenticated log-volume denial of service in dynamic resource routes
medium5.3May 18, 2026CVE-2026-39844
NiceGUI: Upload filename sanitization bypass via backslashes allows path traversal on Windows
medium5.9Apr 8, 2026CVE-2026-33332
NiceGUI's unvalidated chunk size parameter in media routes can cause memory exhaustion
medium5.3Mar 19, 2026CVE-2026-27156
NiceGUI vulnerable to XSS via Code Injection during client-side element function execution
medium6.1Feb 24, 2026CVE-2026-25516
NiceGUI's XSS vulnerability in ui.markdown() allows arbitrary JavaScript execution through unsanitized HTML content
medium6.1Feb 5, 2026
