<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-06T23:30:31.215083+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/cve-2025-66469</id>
    <title>CVE-2025-66469 — NiceGUI Reflected XSS in ui.add_css, ui.add_scss, and ui.add_sass via Style Injection</title>
    <updated>2026-10-06T23:30:31.216807+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> zauberzeug nicegui</p>
<p>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 &lt;style&gt; or &lt;script&gt; tags by injecting closing tags (e.g., &lt;/style&gt; or &lt;/script&gt;), allowing for the execution of arbitrary JavaScript. This issue is fixed in version 3.4.0.</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/cve-2025-66469"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/ghsa-72qc-wxch-74mg</id>
    <title>GHSA-72qc-wxch-74mg — NiceGUI Reflected XSS in ui.add_css, ui.add_scss, and ui.add_sass via Style Injection</title>
    <updated>2026-10-06T23:30:31.216873+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: nicegui</p>
<p>### Summary
A Cross-Site Scripting (XSS) vulnerability exists in `ui.add_css`, `ui.add_scss`, and `ui.add_sass` functions in NiceGUI (v3.3.1 and earlier).</p>
<p>These functions allow developers to inject styles dynamically. However, they lack proper sanitization or encoding for the JavaScript context they generate. An attacker can break out of the intended `&lt;style&gt;` or `&lt;script&gt;` tags by injecting closing tags (e.g., `&lt;/style&gt;` or `&lt;/script&gt;`), allowing for the execution of arbitrary JavaScript.</p>
<p>### Details
The vulnerability stems from how these functions inject content into the DOM using `client.run_javascript` (or `add_head_html` internally) without sufficient escaping for the transport layer.</p>
<p>* **`ui.add_css`**: Injects content into a `&lt;style&gt;` tag. Input containing `&lt;/style&gt;` closes the tag prematurely, allowing subsequent HTML/JS injection.
* **`ui.add_scss` / `ui.add_sass`**: These rely on client-side compilation within `&lt;script&gt;` tags. Input containing `&lt;/script&gt;` breaks the execution context, allowing XSS.</p>
<p>### PoC
**Scenario:** A developer allows users to customize a theme color via a URL parameter.</p>
<p>```python
from nicegui import ui</p>
<p>@ui.page('/')
def main(color: str = 'blue'):
    # Vulnerable implementation of dynamic theming
    ui.add_css(f'.q-btn {{ background-color: {color} !important; }}')
    ui.button('Click Me')</p>
<p>ui.run(port=8082)
```
**Attack Vector:**
Accessing the following URL executes arbitrary JavaScript:
`http://localhost:8082/?color=red;}&lt;/style&gt;&lt;img…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/ghsa-72qc-wxch-74mg"/>
  </entry>
</feed>
