CVE-2025-53354
MEDIUM 6.1CVSS 3.1NiceGUI has a Reflected XSS
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.
- Published
- 3 Oct 2025
- Last modified
- 8 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-8c95-hpq2-w46fPYSEC-2026-1699
- Sources
- NVDJSONOSV GHSA-8c95-hpq2-w46fJSONOSV PYSEC-2026-1699JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | nicegui | < 3.0.0 | 3.0.0 |
References
- https://github.com/zauberzeug/nicegui/commit/4673dc35c94a0c7339e2164378b0977332e60775 · WEB
- https://github.com/zauberzeug/nicegui/security/advisories/GHSA-8c95-hpq2-w46f · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-53354 · ADVISORY
- https://github.com/zauberzeug/nicegui · PACKAGE
- https://pypi.org/project/nicegui · PACKAGE
- https://github.com/advisories/GHSA-8c95-hpq2-w46f · ADVISORY
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 3 Oct 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Oct 2025)