## Astro: Reflected/Stored XSS via unescaped <script>/<style> tag content in JSX/MDX rendering

- 種別: advisory
- 重大度: medium
- 関連技術: nodejs
- CVE: CVE-2026-114128
- 公開日時: 2026-10-22T16:30:26.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-98hj-9722-w3j8)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-98hj-9722-w3j8

影響: npm:astro < 7.3.2 → 7.3.2
Astro's JSX and MDX rendering pipeline treated string children of , an attacker-controlled value containing or could terminate the element and inject arbitrary HTML and JavaScript. Other JSX expression contexts escaped dynamic strings automatically. This behavior was limited to passed to 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 dynami…