Skip to main content
VulnerabilityPublished

CVE-2025-66470: zauberzeug nicegui · Cross-site Scripting

Affects zauberzeug niceguiSource CVE Database V5

0

Not known to be exploited · CVSS 6.1 Medium : upgrade to 3.4.0 when convenient.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 16% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.4.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade zauberzeug nicegui to 3.4.0.

Affected software

ProductAffectedFixed in
PyPIniceguipkg:pypi/niceguiOther threatsAffected
  • <3.4.0
Fixed in
  • 3.4.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The primary mitigation is to upgrade all NiceGUI instances to version 3.4.0 or later, where the vulnerability is fixed. Until upgrades can be applied, organizations should implement strict input validation and sanitization on any user-generated SVG content before rendering it in the ui.interactive_image component. Employ Content Security Policy (CSP) headers to restrict script execution and reduce the impact of potential XSS payloads. Disable or restrict the use of the <foreignObject> tag in SVGs if possible. Educate users about the risks of interacting with untrusted content and implement monitoring to detect unusual script execution or DOM manipulations. For multi-user applications, apply role-based access controls to limit who can upload or modify SVG content. Regularly audit and review third-party components for security updates. Finally, conduct penetration testing focused on XSS vectors in SVG rendering to identify any residual risks.

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.

References

Community reviews

Loading reviews…