Reflected XSS in NiceGUI Python UI Framework
CVE-2025-66469
6.1MEDIUM
What is CVE-2025-66469?
The NiceGUI framework for Python has a vulnerability that allows for Reflected Cross-Site Scripting (XSS) attacks in versions 3.3.1 and earlier. Through the ui.add_css, ui.add_scss, and ui.add_sass functions, the framework fails to adequately sanitize or encode JavaScript context outputs. Attackers can exploit this flaw by injecting malicious closing tags into the or elements, leading to the execution of arbitrary JavaScript code. This critical issue has been addressed in version 3.4.0.
Affected Version(s)
nicegui < 3.4.0
