<?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://vulnerability.circl.lu</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, 29 Sep 2026 01:53:28 +0000</lastBuildDate>
    <item>
      <title>GHSA-h8r8-wccr-v5f2 — DOMPurify is vulnerable to mutation-XSS via Re-Contextualization</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-h8r8-wccr-v5f2</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: dompurify&lt;/p&gt;
&lt;p&gt;## Description&lt;/p&gt;
&lt;p&gt;A mutation-XSS (mXSS) condition was confirmed when sanitized HTML is reinserted into a new parsing context using `innerHTML` and special wrappers. The vulnerable wrappers confirmed in browser behavior are `script`, `xmp`, `iframe`, `noembed`, `noframes`, and `noscript`. The payload remains seemingly benign after `DOMPurify.sanitize()`, but mutates during the second parse into executable markup with an event handler, enabling JavaScript execution in the client (`alert(1)` in the PoC).&lt;/p&gt;
&lt;p&gt;## Vulnerability&lt;/p&gt;
&lt;p&gt;The root cause is context switching after sanitization: sanitized output is treated as trusted and concatenated into a wrapper string (for example, `&amp;lt;xmp&amp;gt; ... &amp;lt;/xmp&amp;gt;` or other special wrappers) before being reparsed by the browser. In this flow, attacker-controlled text inside an attribute (for example `&amp;lt;/xmp&amp;gt;` or equivalent closing sequences for each wrapper) closes the special parsing context early and reintroduces attacker markup (`&amp;lt;img ... onerror=...&amp;gt;`) outside the original attribute context. DOMPurify sanitizes the original parse tree, but the application performs a second parse in a different context, reactivating dangerous tokens (classic mXSS pattern).&lt;/p&gt;
&lt;p&gt;## PoC&lt;/p&gt;
&lt;p&gt;1. Start the PoC app:
```bash
npm install
npm start
```&lt;/p&gt;
&lt;p&gt;2. Open `http://localhost:3001`.
3. Set `Wrapper en sink` to `xmp`.
4. Use payload:
```html
 &amp;lt;img src=x alt=&amp;#34;&amp;lt;/xmp&amp;gt;&amp;lt;img src=x onerror=alert(&amp;#39;expoc&amp;#39;)&amp;gt;&amp;#34;&amp;gt;
```&lt;/p&gt;
&lt;p&gt;5. Click `Sanitize + Render`.
6. Observe:
- `Sanitized response` still contains t…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: dompurify&lt;/p&gt;
&lt;p&gt;## Description&lt;/p&gt;
&lt;p&gt;A mutation-XSS (mXSS) condition was confirmed when sanitized HTML is reinserted into a new parsing context using `innerHTML` and special wrappers. The vulnerable wrappers confirmed in browser behavior are `script`, `xmp`, `iframe`, `noembed`, `noframes`, and `noscript`. The payload remains seemingly benign after `DOMPurify.sanitize()`, but mutates during the second parse into executable markup with an event handler, enabling JavaScript execution in the client (`alert(1)` in the PoC).&lt;/p&gt;
&lt;p&gt;## Vulnerability&lt;/p&gt;
&lt;p&gt;The root cause is context switching after sanitization: sanitized output is treated as trusted and concatenated into a wrapper string (for example, `&amp;lt;xmp&amp;gt; ... &amp;lt;/xmp&amp;gt;` or other special wrappers) before being reparsed by the browser. In this flow, attacker-controlled text inside an attribute (for example `&amp;lt;/xmp&amp;gt;` or equivalent closing sequences for each wrapper) closes the special parsing context early and reintroduces attacker markup (`&amp;lt;img ... onerror=...&amp;gt;`) outside the original attribute context. DOMPurify sanitizes the original parse tree, but the application performs a second parse in a different context, reactivating dangerous tokens (classic mXSS pattern).&lt;/p&gt;
&lt;p&gt;## PoC&lt;/p&gt;
&lt;p&gt;1. Start the PoC app:
```bash
npm install
npm start
```&lt;/p&gt;
&lt;p&gt;2. Open `http://localhost:3001`.
3. Set `Wrapper en sink` to `xmp`.
4. Use payload:
```html
 &amp;lt;img src=x alt=&amp;#34;&amp;lt;/xmp&amp;gt;&amp;lt;img src=x onerror=alert(&amp;#39;expoc&amp;#39;)&amp;gt;&amp;#34;&amp;gt;
```&lt;/p&gt;
&lt;p&gt;5. Click `Sanitize + Render`.
6. Observe:
- `Sanitized response` still contains t…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-h8r8-wccr-v5f2</guid>
    </item>
  </channel>
</rss>
