Vulnerability · Published Oct 21, 2026 · Assigned by GitHub_M
CVE-2026-114128Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering
Medium 6.5
In plain English
A medium-severity cross-site scripting in astro from withastro. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | astro | 7.3.2 | GHSA-98hj-9722-w3j8 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
References
- https://github.com/withastro/astro/security/advisories/GHSA-98hj-9722-w3j8 x_refsource_CONFIRM
- https://github.com/withastro/astro/pull/17896 x_refsource_MISC
- https://github.com/withastro/astro/commit/a548223607b9bb146d5d90ddda495343f9a2a739 x_refsource_MISC
- https://github.com/withastro/astro/releases/tag/astro@7.3.2 x_refsource_MISC