VDB
Sign up
HIGH8.2

PYSEC-2026-1704

NiceGUI allows potential access to local file system

Quick fix

PYSEC-2026-1704 — nicegui: upgrade to the fixed version with the command below.

pip install --upgrade 'nicegui>=1.4.21'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/nicegui
Introduced in: 1.4.6Fixed in: 1.4.21
Fixpip install --upgrade 'nicegui>=1.4.21'

References