{"id":"CVE-2025-53354","published":"2025-10-03T19:32:21Z","modified":"2025-10-03T19:42:40Z","title":"NiceGUI is vulnerable to Reflected XSS attack","vendor":"zauberzeug","product":"nicegui","tier":"tail","description":{"text":"NiceGUI is a Python-based UI framework. Versions 2.24.2 and below are at risk for Cross-Site Scripting (XSS) when developers render unescaped user input into the DOM using ui.html(). NiceGUI did not enforce HTML or JavaScript sanitization, so applications that directly combine components like ui.input() with ui.html() or  ui.chat_message with HTML content without escaping may allow attackers to execute arbitrary JavaScript in the user’s browser. Applications that do not pass untrusted input into ui.html() are not affected. This issue is fixed in version 3.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00358,"percentile":0.21853,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/zauberzeug/nicegui/security/advisories/GHSA-8c95-hpq2-w46f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zauberzeug/nicegui/commit/4673dc35c94a0c7339e2164378b0977332e60775","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":4.37},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"zauberzeug","affectedVersions":[{"vendor":"zauberzeug","product":"nicegui","versions":["< 3.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-03T19:41:55.791075Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nicegui","vulnerableRanges":["<3.0.0"],"patched":["3.0.0"],"from":["GHSA-8c95-hpq2-w46f","PYSEC-2026-1699"],"provenance":"source"}],"summary":{"text":"NiceGUI, a Python-based UI framework from zauberzeug, has a reflected cross-site scripting flaw in its ui.html() component and the surrounding input and chat components when developers render unescaped user input into the page. An attacker can run arbitrary JavaScript in a victim's browser, but only where an application passes untrusted input into ui.html() without escaping and the victim must interact with a crafted link or input, as NiceGUI itself does not sanitise HTML or JavaScript.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:17:06Z"},"euvd":{"id":"EUVD-2025-32482","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-32005","published":"2024-04-12","fixed":"1.4.21","kev":false},{"cve":"CVE-2025-21618","published":"2025-01-06","fixed":"2.9.1","kev":false},{"cve":"CVE-2025-53354","published":"2025-10-03","fixed":"3.0.0","kev":false},{"cve":"CVE-2025-66469","published":"2025-12-08","fixed":"3.4.0","kev":false,"link":{"from":"CVE-2025-53354","to":"CVE-2025-66469","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:nicegui","fromFixed":"3.0.0","toFixed":"3.4.0","daysApart":66}]}},{"cve":"CVE-2025-66470","published":"2025-12-09","fixed":"3.4.0","kev":false,"link":{"from":"CVE-2025-53354","to":"CVE-2025-66470","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:nicegui","fromFixed":"3.0.0","toFixed":"3.4.0","daysApart":67}]}},{"cve":"CVE-2025-66645","published":"2025-12-09","fixed":"3.4.0","kev":false,"link":{"from":"CVE-2025-53354","to":"CVE-2025-66645","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:nicegui","fromFixed":"3.0.0","toFixed":"3.4.0","daysApart":67}]}}],"package":"PyPI:nicegui"}}