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
- MediumARTEX and beyond: AI-enabled penetration testing platformsSimilar attack · Cisco Talos Blog
- InfoHow AI is changing the nature of cyberattacksSimilar attack · CSO Online
- MediumInside the loop: Five AI attack frameworks that never ask permissionSimilar attack · Elastic Security Labs
- MediumARTEX: Attackers Adopted This AI Pentesting Tool in Three Months. Leaked Secrets Are Its Fastest Way In.Similar attack · StepSecurity Blog
- MediumFBI Says North Korean Hackers Stole Over $400 Million in Crypto Using Deepfake Video CallsSimilar attack · The Hacker News