| 概要 | Astro is a web framework. Prior to 6.4.6, the spreadAttributes function in Astro's server-side rendering pipeline iterates over object keys and passes them directly to addAttribute, which interpolates the key into the HTML output without escaping. When a developer uses the spread syntax {...props} on an HTML element and the object keys come from an untrusted source (API, CMS, URL parameters), an attacker can inject arbitrary HTML attributes including event handlers like onmousemove, onclick, or break out of the attribute context entirely to inject new elements. This vulnerability is fixed in 6.4.6. |
|---|---|
| 公表日 | 2026年6月23日4:17 |
| 登録日 | 2026年6月27日4:11 |
| 最終更新日 | 2026年6月24日2:17 |
| CVSS3.1 : MEDIUM | |
| スコア | 6.1 |
|---|---|
| ベクター | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| 攻撃元区分(AV) | ネットワーク |
| 攻撃条件の複雑さ(AC) | 低 |
| 攻撃に必要な特権レベル(PR) | 不要 |
| 利用者の関与(UI) | 要 |
| 影響の想定範囲(S) | 変更あり |
| 機密性への影響(C) | 低 |
| 完全性への影響(I) | 低 |
| 可用性への影響(A) | なし |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:astro:astro:*:*:*:*:*:node.js:*:* | 6.4.6 | ||||
| タイトル | Astroにおけるクロスサイトスクリプティングの脆弱性 |
|---|---|
| 概要 | Astroはウェブフレームワークです。バージョン6.4.6より前のバージョンでは、AstroのサーバーサイドレンダリングパイプラインのspreadAttributes関数がオブジェクトのキーを反復処理し、それらをaddAttributeに直接渡します。この関数はキーをエスケープせずにHTML出力に埋め込みます。開発者がHTML要素に対してスプレッド構文{...props}を使用し、そのオブジェクトキーが信頼できないソース(API、CMS、URLパラメーター)から来る場合、攻撃者はonmousemoveやonclickのようなイベントハンドラーを含む任意のHTML属性を注入したり、属性コンテキストを完全に離れて新しい要素を注入することが可能です。この脆弱性はバージョン6.4.6で修正されました。 |
| 想定される影響 | ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年6月22日0:00 |
| 登録日 | 2026年6月24日9:59 |
| 最終更新日 | 2026年6月24日9:59 |
| Astro |
| Astro 6.4.6 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年06月24日] 掲載 |
2026年6月24日9:59 |