GHSA-jfrm-rx66-g536: NiceGUI: Local file disclosure via Docutils file insertion in ui.restructured_text()
- Identifiers
- CVE-2026-45553GHSA-jfrm-rx66-g536
- Published
- Record updated
- Affected
- nicegui <= 3.11.1
- Fixed in
- 3.12.0
- released May 12, 2026, 6 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.3%
Summary
NiceGUI's `ui.restructured_text()` renders reStructuredText through Docutils in `prepare_content()` in `nicegui/elements/restructured_text.py` without disabling file insertion or raw directives. An attacker who supplies content to the function can use `include`, `csv-table` with `:file:`, or `raw` with `:file:` to read files readable by the NiceGUI server process, such as `.env` files and mounted secrets. Applications that pass only trusted static strings are not affected.
Mitigation
Disable unsafe Docutils features in `prepare_content()` by setting `file_insertion_enabled` to False, `raw_enabled` to False, and `_disable_config` to True in `settings_overrides`, alongside the existing `syntax_highlight: 'short'`. This blocks the `include`, `csv-table :file:`, and `raw :file:` directives and local `docutils.conf` overrides.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- niceguiPyPINo LLM dependency detected · 1 tracked dependent
Related items
- MediumCVE-2026-102610: fast-agent serve unauthenticated remote command execution via /mcp endpointSimilar attack · NVD/CVE Database
- CriticalCVE-2026-58490: Tracecat SAML authentication bypass through unsigned responses in Docker ComposeSimilar attack · NVD/CVE Database
- MediumCVE-2026-124028: mistral.rs delimiter injection allows attacker-chosen tool calls via quoted textSimilar attack · NVD/CVE Database
- HighCVE-2026-123974: TorchServe local privilege escalation via predictable /tmp extraction directorySimilar attack · NVD/CVE Database
- InfoOpenAI Says New GPT-6 Cyber Model Hunts Flaws Without Crossing the LineSimilar attack · SecurityWeek