Back to list

NiceGUI: Local file disclosure via Docutils file insertion in ui.restructured_text() — CVE-2026-45553

GitHub · GitHub · CVE-2026-45553

ID
CVE-2026-45553
Date
Activity
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
7.5

Summary

### Summary `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…

Product

pip: nicegui

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories