CVE-2025-53354 json
NiceGUI is vulnerable to Reflected XSS attack
published 2025-10-03 13 mo ago modified 2026-10-08 31 d ago also EUVD-2025-32482 , GHSA-8c95-hpq2-w46f , PYSEC-2026-1699
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 10%
- public exploits
- 0
- none known
Summary
NiceGUI is a Python-based UI framework. Versions 2.24.2 and below are at risk for Cross-Site Scripting (XSS) when developers render unescaped user input into the DOM using ui.html(). NiceGUI did not enforce HTML or JavaScript sanitization, so applications that directly combine components like ui.input() with ui.html() or ui.chat_message with HTML content without escaping may allow attackers to execute arbitrary JavaScript in the user’s browser. Applications that do not pass untrusted input into ui.html() are not affected. This issue is fixed in version 3.0.0.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.20% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | nicegui | <3.0.0 |
3.0.0 |
Affected products
- zauberzeug nicegui
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/zauberzeug/nicegui/commit/4673dc35c94a0c7339e2164378b0977332e60775
web
-
github.com
/zauberzeug/nicegui/security/advisories/GHSA-8c95-hpq2-w46f
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-53354
advisory
-
github.com
/zauberzeug/nicegui
package
-
pypi.org
/project/nicegui
package
-
github.com
/advisories/GHSA-8c95-hpq2-w46f
advisory
Sources
- CVE List CVE-2025-53354
- GitHub Advisory GHSA-8c95-hpq2-w46f
- NVD CVE-2025-53354
- OSV PYSEC-2026-1699
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.