Description
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.
References (3)
Core 3
Core References
Vendor Advisory x_refsource_confirm
https://github.com/zauberzeug/nicegui/security/advisories/GHSA-mwc7-64wg-pgvj
Patch x_refsource_misc
https://github.com/zauberzeug/nicegui/commit/ed12eb14f2a6c48b388a05c04b3c5a107ea9d330
Exploit, Third Party Advisory x_refsource_misc
https://huntr.com/bounties/29ec621a-bd69-4225-ab0f-5bb8a1d10c67
Scores
CVSS v3
8.2
EPSS
0.0076
EPSS Percentile
50.3%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-22
CWE-23
Status
published
Products (2)
pypi/nicegui
1.4.6 - 1.4.21PyPI
zauberzeug/nicegui
>= 1.4.6, < 1.4.21
Published
Apr 12, 2024
Tracked Since
Feb 18, 2026