{"id":"CVE-2025-66470","published":"2025-12-09T00:11:14Z","modified":"2025-12-09T16:03:45Z","title":"NiceGUI Stored/Reflected XSS in ui.interactive_image via unsanitized SVG content","vendor":"zauberzeug","product":"nicegui","tier":"tail","description":{"text":"NiceGUI is a Python-based UI framework. Versions 3.3.1 and below are subject to a XSS vulnerability through the ui.interactive_image component of NiceGUI. The component renders SVG content using Vue's v-html directive without any sanitization. This allows attackers to inject malicious HTML or JavaScript via the SVG <foreignObject> tag whenever the image component is rendered or updated. This is particularly dangerous for dashboards or multi-user applications displaying user-generated content or annotations. 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.0037,"percentile":0.22925,"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-2m4f-cg75-76w2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zauberzeug/nicegui/commit/58ad0b36e19922de16bbc79ea3ddd29851b1a3e3","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":4.58},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.27}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-12-11","earliestUrl":"https://github.com/Jmehta10/CVE-2025-66470","repos":[{"name":"Jmehta10/CVE-2025-66470","url":"https://github.com/Jmehta10/CVE-2025-66470","stars":2,"created":"2025-12-11"}]},"first":{"date":"2025-12-11","source":"PoC-in-GitHub","url":"https://github.com/Jmehta10/CVE-2025-66470"},"provenance":"source"},"vendorSlug":"zauberzeug","affectedVersions":[{"vendor":"zauberzeug","product":"nicegui","versions":["< 3.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-09T14:17:55.053043Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nicegui","vulnerableRanges":["<3.4.0"],"patched":["3.4.0"],"from":["GHSA-2m4f-cg75-76w2","PYSEC-2026-1696"],"provenance":"source"}],"summary":{"text":"The ui.interactive_image component in zauberzeug's NiceGUI Python UI framework (versions 3.3.1 and below) renders SVG content via Vue's v-html directive without sanitization, enabling cross-site scripting. An attacker who can supply SVG content, such as user-generated annotations or other user-supplied input, can inject malicious HTML or JavaScript through an SVG <foreignObject> element that executes when the image is rendered or updated, requiring a user to view the affected page and no authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:07Z"},"euvd":{"id":"EUVD-2025-201813","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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-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-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},{"cve":"CVE-2026-21872","published":"2026-01-08","fixed":"3.5.0","kev":false}],"package":"PyPI:nicegui"}}