CVE-2026-114128
Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.5
Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering
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.
- Record
CVE-2026-114128- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
EUVDEUVD-2026-107411
6.5
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.
- Record
EUVD-2026-107411- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-98hj-9722-w3j8
6.5
Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering
Summary
Astro's JSX and MDX rendering pipeline treated string children of <script> and <style> elements as trusted HTML. When a dynamic value was passed through a JSX expression, such as <script>{value}</script>, an attacker-controlled value containing </script> or </style> could terminate the element and inject arbitrary HTML and JavaScript.
Other JSX expression contexts escaped dynamic strings automatically. This behavior was limited to <script> and <style> children rendered through Astro's astro:jsx renderer, including MDX components.
Details
The affected rendering paths marked all string children of <script> and <style> elements as safe HTML, without distinguishing literal content generated by the compiler from dynamic expression values. An application was vulnerable when attacker-controlled data, such as a query parameter or CMS field, was interpolated directly into one of these elements.
For example, a value containing </script><script>alert(1)</script> passed to <script>{value}</script> was emitted without escaping. The browser interpreted the first closing tag as markup and executed the injected script.
The fix preserves raw rendering for literal script and style content while escaping dynamic string children like other JSX expression values.
Impact
Affected applications could be vulnerable to reflected or stored cross-site scripting. Exploitation required an application to pass attacker-controlled data directly as a dynamic child of a <script> or <style> element in MDX or through the astro:jsx runtime. Successful exploitation allowed arbitrary JavaScript execution in the victim's browser under the application's origin.
Patches
This issue is patched in [email protected].
Workarounds
Do not interpolate untrusted dynamic values directly into <script> or <style> element children. Applications that cannot upgrade should validate and contextually encode these values before rendering them.
Credit
Reported by @RKasai127.
- Record
GHSA-98hj-9722-w3j8- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
NVD
6.5
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.
- Record
CVE-2026-114128- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
6.5
Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering
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.
- Record
CVE-2026-114128- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVGHSA-98hj-9722-w3j8
6.5
Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering
Summary
Astro's JSX and MDX rendering pipeline treated string children of <script> and <style> elements as trusted HTML. When a dynamic value was passed through a JSX expression, such as <script>{value}</script>, an attacker-controlled value containing </script> or </style> could terminate the element and inject arbitrary HTML and JavaScript.
Other JSX expression contexts escaped dynamic strings automatically. This behavior was limited to <script> and <style> children rendered through Astro's astro:jsx renderer, including MDX components.
Details
The affected rendering paths marked all string children of <script> and <style> elements as safe HTML, without distinguishing literal content generated by the compiler from dynamic expression values. An application was vulnerable when attacker-controlled data, such as a query parameter or CMS field, was interpolated directly into one of these elements.
For example, a value containing </script><script>alert(1)</script> passed to <script>{value}</script> was emitted without escaping. The browser interpreted the first closing tag as markup and executed the injected script.
The fix preserves raw rendering for literal script and style content while escaping dynamic string children like other JSX expression values.
Impact
Affected applications could be vulnerable to reflected or stored cross-site scripting. Exploitation required an application to pass attacker-controlled data directly as a dynamic child of a <script> or <style> element in MDX or through the astro:jsx runtime. Successful exploitation allowed arbitrary JavaScript execution in the victim's browser under the application's origin.
Patches
This issue is patched in [email protected].
Workarounds
Do not interpolate untrusted dynamic values directly into <script> or <style> element children. Applications that cannot upgrade should validate and contextually encode these values before rendering them.
Credit
Reported by @RKasai127.
- Record
GHSA-98hj-9722-w3j8- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
Show 5 moreShow less
OSVCLSA-2026-1793810909 No score
TuxCare security update for astro (1 CVE)
TuxCare rebuilt astro to address 1 CVE. Fixed in 4.16.19-tuxcare.10.
- Record
CLSA-2026-1793810909- Updated
- 2026-11-04
OSVCLSA-2026-1793811013 No score
TuxCare security update for astro (1 CVE)
TuxCare rebuilt astro to address 1 CVE. Fixed in 5.18.2-tuxcare.4.
- Record
CLSA-2026-1793811013- Updated
- 2026-11-04
OSVCLSA-2026-1793811117 No score
TuxCare security update for astro (1 CVE)
TuxCare rebuilt astro to address 1 CVE. Fixed in 5.18.1-tuxcare.10.
- Record
CLSA-2026-1793811117- Updated
- 2026-11-04
OSVCLSA-2026-1793811309 No score
TuxCare security update for astro (1 CVE)
TuxCare rebuilt astro to address 1 CVE. Fixed in 2.10.15-tuxcare.12.
- Record
CLSA-2026-1793811309- Updated
- 2026-11-04
OSVCLSA-2026-1793813210 No score
TuxCare security update for astro (1 CVE)
TuxCare rebuilt astro to address 1 CVE. Fixed in 3.6.5-tuxcare.13.
- Record
CLSA-2026-1793813210- Updated
- 2026-11-05
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
astronpm |
before 7.3.2 | 7.3.2 |
astroTuxCare:npm |
4.16.19-tuxcare.0 up to 4.16.19-tuxcare.10, plus listed versions 4.16.194.16.19-tuxcare.14.16.19-tuxcare.24.16.19-tuxcare.34.16.19-tuxcare.4 Show 5 moreShow less4.16.19-tuxcare.54.16.19-tuxcare.64.16.19-tuxcare.74.16.19-tuxcare.84.16.19-tuxcare.9 |
4.16.19-tuxcare.10 |
astroTuxCare:npm |
5.18.2-tuxcare.0 up to 5.18.2-tuxcare.4, plus listed versions 5.18.25.18.2-tuxcare.15.18.2-tuxcare.25.18.2-tuxcare.3 |
5.18.2-tuxcare.4 |
astroTuxCare:npm |
5.18.1-tuxcare.0 up to 5.18.1-tuxcare.10, plus listed versions 5.18.15.18.1-tuxcare.15.18.1-tuxcare.25.18.1-tuxcare.35.18.1-tuxcare.4 Show 5 moreShow less5.18.1-tuxcare.55.18.1-tuxcare.65.18.1-tuxcare.75.18.1-tuxcare.85.18.1-tuxcare.9 |
5.18.1-tuxcare.10 |
astroTuxCare:npm |
2.10.15-tuxcare.0 up to 2.10.15-tuxcare.12, plus listed versions 2.10.152.10.15-tuxcare.12.10.15-tuxcare.102.10.15-tuxcare.112.10.15-tuxcare.2 Show 7 moreShow less2.10.15-tuxcare.32.10.15-tuxcare.42.10.15-tuxcare.52.10.15-tuxcare.62.10.15-tuxcare.72.10.15-tuxcare.82.10.15-tuxcare.9 |
2.10.15-tuxcare.12 |
astroTuxCare:npm |
3.6.5-tuxcare.0 up to 3.6.5-tuxcare.13, plus listed versions 3.6.53.6.5-tuxcare.13.6.5-tuxcare.103.6.5-tuxcare.113.6.5-tuxcare.12 Show 8 moreShow less3.6.5-tuxcare.23.6.5-tuxcare.33.6.5-tuxcare.43.6.5-tuxcare.53.6.5-tuxcare.63.6.5-tuxcare.73.6.5-tuxcare.83.6.5-tuxcare.9 |
3.6.5-tuxcare.13 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases | OSV | |
| affected, aliases, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-114128 is a medium vulnerability (CVSS 6.5) in Withastro Astro, published October 21, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.32%, the 25th percentile. Fixed in astro 7.3.2.
References
github.com/withastro/astro/security/advisories/GHSA-98hj-9722-w3j8
github.com/withastro/astro/pull/17896
github.com/withastro/astro/commit/a548223607b9bb146d5d90ddda495343f9a2a739
github.com/withastro/astro/releases/tag/[email protected]
nvd.nist.gov/vuln/detail/CVE-2026-114128
github.com/advisories/GHSA-98hj-9722-w3j8
github.com/CVEProject/cvelistV5/tree/main/cves/2026/114xxx/CVE-2026-114128.json
github.com/withastro/astro