Local File Inclusion Vulnerability in NiceGUI
Summary
CVE-2024-32005: NiceGUI allows potential access to local file system. Affects nicegui versions >= 1.4.6, < 1.4.21. Fixed in 1.4.21. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
NiceGUI is a Python-based UI framework that provides an easy-to-use interface for developers. It allows the creation of graphical user interfaces using Python code. The framework is widely used for building desktop applications and web interfaces. However, a vulnerability has been discovered in NiceGUI that allows potential access to the local file system. This vulnerability can be exploited by attackers to read any file on the backend filesystem that the web server has access to.
Vulnerability Detail
The vulnerability in NiceGUI is a local file inclusion issue that exists in the NiceUI leaflet component. When requesting resource files under the /_nicegui/{__version__}/resources/{key}/{path:path} route, an attacker can manipulate the request to access arbitrary files on the backend filesystem. This can lead to unauthorized disclosure of sensitive information stored on the server. The vulnerability has a CVSS score of 8.2, indicating a high severity level.
How To Fix
Latest published version: 3.18.0 as of 22 Oct 2026
pip install --upgrade "nicegui==3.18.0"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.4.21
This is the first release that contains the fix.
pip install --upgrade "nicegui==1.4.21"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The local file inclusion vulnerability in NiceGUI can be exploited by attackers to access sensitive files on the backend filesystem. To mitigate this risk, users should upgrade to version 1.4.21 or later. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for nicegui →
FAQ
NiceGUI is a Python-based UI framework that simplifies the development of graphical user interfaces using Python code.
The vulnerability allows attackers to read arbitrary files on the backend filesystem, potentially leading to unauthorized access to sensitive information.
To fix the vulnerability, you need to upgrade to version 1.4.21 or later of NiceGUI.
There are no known workarounds for this vulnerability. Upgrading to the latest version is the recommended solution.
You can find more information about NiceGUI on the official website and documentation.
References
Related vulnerabilities
Recent vulnerabilities recorded for nicegui.