CVE-2025-66469: NiceGUI Reflected XSS
Affects niceguiSource GCVE Database
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
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.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:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| PyPInicegui | Affected
| Fixed in
|
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.