<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://cve.radiocsirt.org</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 06 Oct 2026 20:32:43 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-21872 — NiceGUI apps are vulnerable to XSS which uses `ui.sub_pages` and render arbitrary user-provided links</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2026-21872</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; zauberzeug nicegui&lt;/p&gt;
&lt;p&gt;NiceGUI is a Python-based UI framework. From versions 2.22.0 to 3.4.1, an unsafe implementation in the click event listener used by ui.sub_pages, combined with attacker-controlled link rendering on the page, causes XSS when the user actively clicks on the link. This issue has been patched in version 3.5.0.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; zauberzeug nicegui&lt;/p&gt;
&lt;p&gt;NiceGUI is a Python-based UI framework. From versions 2.22.0 to 3.4.1, an unsafe implementation in the click event listener used by ui.sub_pages, combined with attacker-controlled link rendering on the page, causes XSS when the user actively clicks on the link. This issue has been patched in version 3.5.0.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2026-21872</guid>
    </item>
    <item>
      <title>GHSA-m7j5-rq9j-6jj9 — NiceGUI apps are vulnerable to XSS which uses `ui.sub_pages` and render arbitrary user-provided links</title>
      <link>https://cve.radiocsirt.org/vuln/ghsa-m7j5-rq9j-6jj9</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: nicegui&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;An unsafe implementation in the `click` event listener used by `ui.sub_pages`, combined with attacker-controlled link rendering on the page, causes an XSS when the user actively clicks on the link.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;1. On `click`, eventually `sub_pages_navigate` event is emitted.
https://github.com/zauberzeug/nicegui/blob/59fa9424c470f1b12c5d368985fa36e21fda706b/nicegui/elements/sub_pages.js#L41-L63&lt;/p&gt;
&lt;p&gt;2. SubPagesRouter (used by ui.sub_pages), lisnening on `sub_pages_navigate`, `_handle_navigate` runs.
https://github.com/zauberzeug/nicegui/blob/59fa9424c470f1b12c5d368985fa36e21fda706b/nicegui/sub_pages_router.py#L18-L22&lt;/p&gt;
&lt;p&gt;3. `_handle_navigate` runs `run_javascript` with f-string substituting `self.current_path` which is simply surrounded by double-quotes. The string context can be broken out easily.&lt;/p&gt;
&lt;p&gt;https://github.com/zauberzeug/nicegui/blob/59fa9424c470f1b12c5d368985fa36e21fda706b/nicegui/sub_pages_router.py#L73-L88&lt;/p&gt;
&lt;p&gt;### PoC&lt;/p&gt;
&lt;p&gt;The minimal PoC boils down to this:&lt;/p&gt;
&lt;p&gt;```py
from nicegui import ui&lt;/p&gt;
&lt;p&gt;ui.sub_pages({&amp;#39;/&amp;#39;: lambda: ui.link(&amp;#39;Go to XSS&amp;#39;, &amp;#39;/&amp;#34;+alert(1)+&amp;#34;&amp;#39;)})&lt;/p&gt;
&lt;p&gt;ui.run()
```&lt;/p&gt;
&lt;p&gt;However, it is more likely that the attack takes place with attacker-controlled input, for which this shows it:&lt;/p&gt;
&lt;p&gt;```py
from nicegui import app, ui&lt;/p&gt;
&lt;p&gt;ui.sub_pages({&amp;#39;/&amp;#39;: lambda: ui.label(&amp;#39;Hello, World!&amp;#39;)})&lt;/p&gt;
&lt;p&gt;ui.textarea(&amp;#39;Markdown content&amp;#39;).bind_value(app.storage.general, &amp;#39;markdown_content&amp;#39;)&lt;/p&gt;
&lt;p&gt;ui.markdown().bind_content_from(app.storage.general, &amp;#39;markdown_content&amp;#39;)&lt;/p&gt;
&lt;p&gt;ui.run()
```&lt;/p&gt;
&lt;p&gt;Vulnerable input is `[X…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: nicegui&lt;/p&gt;
&lt;p&gt;### Summary&lt;/p&gt;
&lt;p&gt;An unsafe implementation in the `click` event listener used by `ui.sub_pages`, combined with attacker-controlled link rendering on the page, causes an XSS when the user actively clicks on the link.&lt;/p&gt;
&lt;p&gt;### Details&lt;/p&gt;
&lt;p&gt;1. On `click`, eventually `sub_pages_navigate` event is emitted.
https://github.com/zauberzeug/nicegui/blob/59fa9424c470f1b12c5d368985fa36e21fda706b/nicegui/elements/sub_pages.js#L41-L63&lt;/p&gt;
&lt;p&gt;2. SubPagesRouter (used by ui.sub_pages), lisnening on `sub_pages_navigate`, `_handle_navigate` runs.
https://github.com/zauberzeug/nicegui/blob/59fa9424c470f1b12c5d368985fa36e21fda706b/nicegui/sub_pages_router.py#L18-L22&lt;/p&gt;
&lt;p&gt;3. `_handle_navigate` runs `run_javascript` with f-string substituting `self.current_path` which is simply surrounded by double-quotes. The string context can be broken out easily.&lt;/p&gt;
&lt;p&gt;https://github.com/zauberzeug/nicegui/blob/59fa9424c470f1b12c5d368985fa36e21fda706b/nicegui/sub_pages_router.py#L73-L88&lt;/p&gt;
&lt;p&gt;### PoC&lt;/p&gt;
&lt;p&gt;The minimal PoC boils down to this:&lt;/p&gt;
&lt;p&gt;```py
from nicegui import ui&lt;/p&gt;
&lt;p&gt;ui.sub_pages({&amp;#39;/&amp;#39;: lambda: ui.link(&amp;#39;Go to XSS&amp;#39;, &amp;#39;/&amp;#34;+alert(1)+&amp;#34;&amp;#39;)})&lt;/p&gt;
&lt;p&gt;ui.run()
```&lt;/p&gt;
&lt;p&gt;However, it is more likely that the attack takes place with attacker-controlled input, for which this shows it:&lt;/p&gt;
&lt;p&gt;```py
from nicegui import app, ui&lt;/p&gt;
&lt;p&gt;ui.sub_pages({&amp;#39;/&amp;#39;: lambda: ui.label(&amp;#39;Hello, World!&amp;#39;)})&lt;/p&gt;
&lt;p&gt;ui.textarea(&amp;#39;Markdown content&amp;#39;).bind_value(app.storage.general, &amp;#39;markdown_content&amp;#39;)&lt;/p&gt;
&lt;p&gt;ui.markdown().bind_content_from(app.storage.general, &amp;#39;markdown_content&amp;#39;)&lt;/p&gt;
&lt;p&gt;ui.run()
```&lt;/p&gt;
&lt;p&gt;Vulnerable input is `[X…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/ghsa-m7j5-rq9j-6jj9</guid>
    </item>
  </channel>
</rss>
