CVE-2025-66470

NiceGUI Stored/Reflected XSS in ui.interactive_image via unsanitized SVG content

Published Dec 9, 2025 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2m4f-cg75-76w2 NiceGUI Stored/Reflected XSS in ui.interactive_image via unsanitized SVG content
History
Type Values Removed Values Added
First Time appeared Zauberzeug
Zauberzeug nicegui
CPEs cpe:2.3:a:zauberzeug:nicegui:*:*:*:*:*:*:*:*
Vendors & Products Zauberzeug
Zauberzeug nicegui
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Nicegui
Nicegui nicegui
Vendors & Products Nicegui
Nicegui nicegui
Type Values Removed Values Added
Description 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.
Title NiceGUI Stored/Reflected XSS in ui.interactive_image via unsanitized SVG content
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Dec 9, 2025, 4:03 PM
Reserved
Dec 2, 2025, 3:43 PM
Status
Analyzed
Published
Dec 9, 2025, 1:16 AM
Modified
Oct 7, 2026, 8:10 PM