# CVE-2025-66469: NiceGUI Reflected XSS in ui.add_css, ui.add_scss, and ui.add_sass via Style Injection

- 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.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-08T21:30:20.000Z
- Modified: 2026-10-19T19:10:00.130Z
- Also known as: GHSA-72qc-wxch-74mg, PYSEC-2026-1697
- 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 3.3.1 and below are vulnerable to Reflected XSS through its ui.add_css, ui.add_scss, and ui.add_sass functions. The functions lack proper sanitization or encoding for the JavaScript context they generate. An attacker can break out of the intended <style> or <script> tags by injecting closing tags (e.g., </style> or </script>), allowing for the execution of arbitrary JavaScript. This issue is fixed in version 3.4.0.

(As written by CVE List.)

## Affected

- zauberzeug nicegui: < 3.4.0; before 3.4.0
- nicegui (PyPI): before 3.4.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-72qc-wxch-74mg> (exploit, vendor-advisory, web)
- <https://github.com/zauberzeug/nicegui/commit/a8fd25b7d5e23afb1952d0f60a1940e18b5f1ca8> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66469> (advisory)
- <https://github.com/zauberzeug/nicegui> (package)
- <https://pypi.org/project/nicegui> (package)
- <https://github.com/advisories/GHSA-72qc-wxch-74mg> (advisory)

## Sources

- CVE List: [CVE-2025-66469](https://www.cve.org/CVERecord?id=CVE-2025-66469), CVE Terms of Use, modified 2025-12-09
- GitHub Advisory Database: [GHSA-72qc-wxch-74mg](https://github.com/advisories/GHSA-72qc-wxch-74mg), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-66469](https://nvd.nist.gov/vuln/detail/CVE-2025-66469), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1697](https://osv.dev/vulnerability/PYSEC-2026-1697), CC-BY-4.0, modified 2026-07-07

---

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