Skip to main content
VulnerabilityPublished

CVE-2025-66469: NiceGUI Reflected XSS

Affects niceguiSource GCVE Database

0
Compare
Authoritative record:CVE-2025-66469· Medium 6.1

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

Data as of 27 Nov 2026, 04:50 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.16.1
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 8 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: 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 Nov 2026.

What to do

Upgrade nicegui to 3.4.0.

Affected software

ProductAffectedFixed in
PyPIniceguiAffected
  • <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

A patch is available in NiceGUI version 3.4.0 that fixes this vulnerability. Users should upgrade to version 3.4.0 or later. Until patched, developers should avoid passing untrusted input directly to ui.add_css, ui.add_scss, or ui.add_sass functions or implement proper input sanitization and encoding to prevent injection of closing style or script tags.

Description

A reflected Cross-Site Scripting (XSS) vulnerability exists in NiceGUI versions prior to 3.4.0 in the functions ui.add_css, ui.add_scss, and ui.add_sass. These functions dynamically inject CSS or SCSS/SASS styles but do not properly sanitize input, allowing attackers to inject closing style or script tags and execute arbitrary JavaScript. This can occur when untrusted input, such as URL parameters, is passed directly to these functions without validation.

References

Community reviews

Loading reviews…