{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-66469","id":"CVE-2025-66469","title":"NiceGUI Reflected XSS in ui.add_css, ui.add_scss, and ui.add_sass via Style Injection","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 execu","descriptionLong":"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.","published":"2025-12-08T23:54:37.955Z","updated":"2026-11-11T10:31:14.616650165Z","reserved":"2025-12-02T15:43:16.586Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["zauberzeug nicegui"],"affectedProducts":[{"vendor":"zauberzeug","product":"nicegui","defaultStatus":null,"versions":[{"version":"< 3.4.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"nicegui","purl":"pkg:pypi/nicegui","ranges":["<3.4.0"],"fixed":["3.4.0"],"advisory":"GHSA-72qc-wxch-74mg"}],"cwes":["CWE-79"],"aliases":["GHSA-72qc-wxch-74mg","PYSEC-2026-1697"],"references":[{"url":"https://github.com/zauberzeug/nicegui/security/advisories/GHSA-72qc-wxch-74mg","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/zauberzeug/nicegui/commit/a8fd25b7d5e23afb1952d0f60a1940e18b5f1ca8","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66469.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66469","tags":["advisory"]},{"url":"https://github.com/zauberzeug/nicegui","tags":["package"]},{"url":"https://pypi.org/project/nicegui","tags":["package"]},{"url":"https://github.com/advisories/GHSA-72qc-wxch-74mg","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00295,"epssPercentile":0.22622,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-66469","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66469","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-66469","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-72qc-wxch-74mg","ok":true,"note":"GHSA-72qc-wxch-74mg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-66469","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}