# CVE-2025-53354: NiceGUI is vulnerable to Reflected XSS attack

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-10-03T19:19:17.000Z
- Modified: 2026-10-08T22:10:00.563Z
- Also known as: GHSA-8c95-hpq2-w46f, PYSEC-2026-1699
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- zauberzeug nicegui: < 3.0.0
- nicegui (PyPI): before 3.0.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/zauberzeug/nicegui/security/advisories/GHSA-8c95-hpq2-w46f> (web)
- <https://github.com/zauberzeug/nicegui/commit/4673dc35c94a0c7339e2164378b0977332e60775> (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)

## Sources

- CVE List: [CVE-2025-53354](https://www.cve.org/CVERecord?id=CVE-2025-53354), CVE Terms of Use, modified 2025-10-03
- GitHub Advisory Database: [GHSA-8c95-hpq2-w46f](https://github.com/advisories/GHSA-8c95-hpq2-w46f), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-53354](https://nvd.nist.gov/vuln/detail/CVE-2025-53354), Public domain, modified 2026-10-08
- PyPA Advisory Database: [PYSEC-2026-1699](https://osv.dev/vulnerability/PYSEC-2026-1699), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-53354 · Whole record: https://cve.day/CVE-2025-53354.json · Rebuilt by cve.day 2026-11-25T22:59:05.503Z
