製品・ソフトウェアに関する情報
Astroにおけるクロスサイトスクリプティングの脆弱性
Title Astroにおけるクロスサイトスクリプティングの脆弱性
Summary

Astroはウェブフレームワークです。バージョン6.1.6以前では、Astroのサーバーサイドレンダリングパイプライン内のdefineScriptVars関数が、define:varsディレクティブを介してインラインscriptタグに挿入される値をサニタイズするために大文字小文字を区別する正規表現/\/script/gを使用していました。HTMLパーサはscript要素を大文字小文字を区別せずに閉じ、閉じるの前に空白や/を許容するため、攻撃者は/Script、/script 、または/script/のようなペイロードでサニタイズを回避し、任意のHTMLやJavaScriptを注入できました。この脆弱性はバージョン6.1.6で修正されました。

Possible impacts 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 24, 2026, midnight
Registration Date April 28, 2026, 10:12 a.m.
Last Update April 28, 2026, 10:12 a.m.
CVSS3.0 : 警告
Score 6.1
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected System
Astro
Astro 6.1.6 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年04月28日]
  掲載
April 28, 2026, 10:12 a.m.

NVD Vulnerability Information
CVE-2026-41067
Summary

Astro is a web framework. Prior to 6.1.6, the defineScriptVars function in Astro's server-side rendering pipeline uses a case-sensitive regex /<\/script>/g to sanitize values injected into inline <script> tags via the define:vars directive. HTML parsers close <script> elements case-insensitively and also accept whitespace or / before the closing >, allowing an attacker to bypass the sanitization with payloads like </Script>, </script >, or </script/> and inject arbitrary HTML/JavaScript. This vulnerability is fixed in 6.1.6.

Publication Date April 25, 2026, 2:16 a.m.
Registration Date April 25, 2026, 4:08 a.m.
Last Update April 27, 2026, 10:41 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:astro:astro:*:*:*:*:*:node.js:*:* 6.1.6
Related information, measures and tools
Common Vulnerabilities List