Local File Inclusion Vulnerability in NiceGUI

nicegui Updated 02 Oct 2025

Summary

12/04/2024
Yes i
High
8.2

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for nicegui.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback