Quick answers
- Is CVE-2025-66470 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2025-66470 being exploited in the wild.
- How severe is CVE-2025-66470?
- Medium severity, with a CVSS score of 6.1, published 9 December 2025.
- Which products and versions are affected?
- nicegui (PyPI) ECOSYSTEM:introduced=0,fixed=3.4.0.
- Is there a fix for CVE-2025-66470?
- Yes. nicegui (PyPI): upgrade to 3.4.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2025-66470 attacked?
- It is attacked over the network.
- Am I affected by CVE-2025-66470?
- Check whether you run nicegui (PyPI) or Zauberzeug Nicegui at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- nicegui (PyPI): upgrade to 3.4.0 or later
pip install "nicegui>=3.4.0"
Technical details
The vulnerability is a Cross-Site Scripting (XSS) flaw in the ui.interactive_image component (nicegui/elements/interactive_image.js). The component uses Vue's v-html directive to render SVG content without sanitization: `<g v-html="content"></g>`. An attacker can inject malicious HTML via SVG <foreignObject> tags containing event handlers (e.g., img onerror=alert()) to execute arbitrary JavaScript. The attack requires user interaction (viewing the rendered component) but no authentication or special privileges. Exploitation is possible if an application accepts user-controlled input for the content property. The vulnerability affects all versions through 3.3.1; a patch is available in version 3.4.0.
Affected products
- Zauberzeug NiceGUI <= 3.3.1
Identifiers
- CVE-2025-66470
- GHSA-2m4f-cg75-76w2
- PYSEC-2026-1696
Timeline
- 2025-12-08: disclosed
- 2025-12-08: patched: Fix available in version 3.4.0