Vulnerability · Published Jun 2, 2026 · Assigned by GitHub_M
CVE-2026-45553NiceGUI: Local file disclosure via Docutils file insertion in ui.restructured_text()
High 7.5
In plain English
A high-severity information exposure in nicegui from zauberzeug. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
NiceGUI is a Python-based UI framework. Prior to version 3.12.0, ui.restructured_text() renders reStructuredText server-side with Docutils without disabling file insertion directives. When a NiceGUI application passes attacker-controlled content to ui.restructured_text(), an attacker can use standard Docutils directives (include, csv-table with :file:, raw with :file:) to read local files readable by the NiceGUI server process. Applications that only pass trusted static strings to ui.restructured_text() are not affected. This issue has been patched in version 3.12.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | nicegui | 3.12.0 | GHSA-jfrm-rx66-g536 |
| PyPI | nicegui | 3.12.0 | PYSEC-2026-2679 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| zauberzeug | nicegui | < 3.12.0 |
Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/zauberzeug/nicegui/security/advisories/GHSA-jfrm-rx66-g536 x_refsource_CONFIRM
- https://github.com/zauberzeug/nicegui/releases/tag/v3.12.0 x_refsource_MISC