XSS Vulnerability in NiceGUI Python UI Framework
CVE-2026-25516
6.1MEDIUM
What is CVE-2026-25516?
The NiceGUI framework, a Python-based UI solution, features a ui.markdown() component vulnerable to cross-site scripting (XSS) due to its reliance on the markdown2 library for converting markdown into HTML. This component does not sanitize user input, allowing attackers to inject malicious HTML and JavaScript event handlers into applications that render user-controlled content. Unlike other components in NiceGUI that offer sanitization, ui.markdown() exposes applications to serious security threats. Users are advised to update to version 3.7.0 or later to mitigate this risk.
Affected Version(s)
nicegui < 3.7.0
