Advisory

GHSA-mwc7-64wg-pgvj

Also known as: CVE-2024-32005, PYSEC-2026-1704

Summary

NiceGUI allows potential access to local file system

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-04-12 21:23 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

nicegui

PyPI · All systems

Affected

  • introduced 1.4.6, fixed 1.4.21 (ecosystem)

Fixed versions

1.4.21

Fix

  • Fixed version 1.4.21
    pip install --upgrade nicegui==1.4.21

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences