---
id: CVE-2026-114128
title: >-
  Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in
  JSX/MDX rendering
summary: >-
  Astro is a web framework for content-driven websites. Prior to 7.3.2, Astro's
  JSX and MDX rendering pipeline treats string children of script and style
  elements as trusted HTML without distinguishing compiler-generated literal
  content fr…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'
cvssSource: cna
cwe:
  - CWE-79
vendor: withastro
product: astro
affected:
  - astro < 7.3.2
published: '2026-10-21'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T17:32:28.466Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-114128'
references:
  - url: 'https://github.com/withastro/astro/security/advisories/GHSA-98hj-9722-w3j8'
    label: 'https://github.com/withastro/astro/security/advisories/GHSA-98hj-9722-w3j8'
  - url: 'https://github.com/withastro/astro/pull/17896'
    label: 'https://github.com/withastro/astro/pull/17896'
  - url: >-
      https://github.com/withastro/astro/commit/a548223607b9bb146d5d90ddda495343f9a2a739
    label: >-
      https://github.com/withastro/astro/commit/a548223607b9bb146d5d90ddda495343f9a2a739
  - url: 'https://github.com/withastro/astro/releases/tag/astro@7.3.2'
    label: 'https://github.com/withastro/astro/releases/tag/astro@7.3.2'
tags:
  - cve.org
ingestedAt: '2026-10-21T18:09:27.276Z'
---

## Overview

Astro is a web framework for content-driven websites. Prior to 7.3.2, Astro's JSX and MDX rendering pipeline treats string children of script and style elements as trusted HTML without distinguishing compiler-generated literal content from dynamic expression values. An application that passes attacker-controlled data directly as a dynamic child can allow a value containing a closing script or style tag to terminate the element and inject arbitrary HTML and JavaScript. Other JSX expression contexts escape dynamic strings automatically; the issue is limited to script and style children rendered through the astro:jsx renderer, including MDX components. Successful exploitation can produce reflected or stored cross-site scripting under the application's origin. This issue is fixed in 7.3.2.

## Affected

- `astro < 7.3.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
