# CVE-2025-66470: NiceGUI Stored/Reflected XSS in ui.interactive_image via unsanitized SVG content

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-08T21:30:39.000Z
- Modified: 2026-10-07T20:10:01.970Z
- Also known as: GHSA-2m4f-cg75-76w2, PYSEC-2026-1696
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- zauberzeug nicegui: < 3.4.0; before 3.4.0
- nicegui (PyPI): before 3.4.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/zauberzeug/nicegui/security/advisories/GHSA-2m4f-cg75-76w2> (exploit, vendor-advisory, web)
- <https://github.com/zauberzeug/nicegui/commit/58ad0b36e19922de16bbc79ea3ddd29851b1a3e3> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66470> (advisory)
- <https://github.com/zauberzeug/nicegui> (package)
- <https://pypi.org/project/nicegui> (package)
- <https://github.com/advisories/GHSA-2m4f-cg75-76w2> (advisory)

## Sources

- CVE List: [CVE-2025-66470](https://www.cve.org/CVERecord?id=CVE-2025-66470), CVE Terms of Use, modified 2025-12-09
- GitHub Advisory Database: [GHSA-2m4f-cg75-76w2](https://github.com/advisories/GHSA-2m4f-cg75-76w2), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-66470](https://nvd.nist.gov/vuln/detail/CVE-2025-66470), Public domain, modified 2026-10-07
- PyPA Advisory Database: [PYSEC-2026-1696](https://osv.dev/vulnerability/PYSEC-2026-1696), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-66470 · Whole record: https://cve.day/CVE-2025-66470.json · Rebuilt by cve.day 2026-11-25T22:59:08.457Z
