High

NiceGUI allows potential access to local file system

  • Disclosed: 12.04.2024
  • Updated: 11.10.2026 15:17

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) nicegui >= 1.4.6, < 1.4.21 1.4.21

References

CVSS score 8.2/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
Weakness (CWE)
CWE-22, CWE-23
Platform
Python (PyPI)
Package
nicegui
Disclosed
12.04.2024
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-1704 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-mwc7-64wg-pgvj - CC BY 4.0

Vulnerability history: nicegui

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (17) in the archive
Total entries
17
First → latest
04.2024 05.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 6
  • Medium 11

Disclosures per year

  1. 2024: 1
  2. 2025: 5
  3. 2026: 11
Severity:
  1. High · 7.2 CVE-2026-21873 >= 2.22.0, < 3.5.0 3.5.0
  2. High · 7.5 CVE-2025-21618 < 2.9.1 2.9.1
  3. NiceGUI allows potential access to local file system this entry
    High · 8.2 CVE-2024-32005 >= 1.4.6, < 1.4.21 1.4.21

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.