{"id":"CVE-2025-66469","published":"2025-12-08T23:54:37Z","modified":"2025-12-09T16:03:54Z","title":"NiceGUI Reflected XSS in ui.add_css, ui.add_scss, and ui.add_sass via Style Injection","vendor":"zauberzeug","product":"nicegui","tier":"tail","description":{"text":"NiceGUI is a Python-based UI framework. Versions 3.3.1 and below are vulnerable to Reflected XSS through its ui.add_css, ui.add_scss, and ui.add_sass functions. The functions lack proper sanitization or encoding for the JavaScript context they generate. An attacker can break out of the intended <style> or <script> tags by injecting closing tags (e.g., </style> or </script>), allowing for the execution of arbitrary JavaScript. This issue is fixed in version 3.4.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.00437,"percentile":0.29836,"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-72qc-wxch-74mg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zauberzeug/nicegui/commit/a8fd25b7d5e23afb1952d0f60a1940e18b5f1ca8","tags":["x_refsource_MISC"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":5.97},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"zauberzeug","affectedVersions":[{"vendor":"zauberzeug","product":"nicegui","versions":["< 3.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-09T14:18:04.262651Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nicegui","vulnerableRanges":["<3.4.0"],"patched":["3.4.0"],"from":["GHSA-72qc-wxch-74mg","PYSEC-2026-1697"],"provenance":"source"}],"summary":{"text":"A reflected cross-site scripting flaw in NiceGUI, a Python-based UI framework from zauberzeug, exists in its ui.add_css, ui.add_scss, and ui.add_sass functions, which fail to sanitize or encode input placed into the JavaScript context they generate. An unauthenticated remote attacker can exploit it by injecting closing tags such as </style> or </script> to escape the intended element and run arbitrary JavaScript, which requires a victim to interact with a crafted link or page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:26Z"},"euvd":{"id":"EUVD-2025-201814","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,"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-66469","published":"2025-12-08","fixed":"3.4.0","kev":false},{"cve":"CVE-2025-66470","published":"2025-12-09","fixed":"3.4.0","kev":false},{"cve":"CVE-2025-66645","published":"2025-12-09","fixed":"3.4.0","kev":false},{"cve":"CVE-2026-21871","published":"2026-01-08","fixed":"3.5.0","kev":false}],"package":"PyPI:nicegui"}}