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

Svelteはパフォーマンス重視のウェブフレームワークです。バージョン5.55.7以前では、スプレッド構文を使用して信頼できないデータから属性をレンダリングする際に、イベントハンドラのプロパティがレンダリングされたHTML出力に含まれてしまいます。アプリケーションがユーザー制御または外部データを要素の属性としてスプレッドする場合、攻撃者は被害者のブラウザで悪意のあるイベントハンドラを実行させることが可能です。この脆弱性は、ユーザーのブラウザでJavaScriptが有効であり、かつSvelteのハイドレーション機構がイベント発火前に脆弱な要素に到達しない場合にのみ発生します。この問題はバージョン5.55.7で修正されました。

Possible impacts ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date June 9, 2026, midnight
Registration Date June 12, 2026, 2:53 p.m.
Last Update June 12, 2026, 2:53 p.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
Svelte project
Svelte 5.55.7 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年06月12日]
  掲載
June 12, 2026, 2:53 p.m.

NVD Vulnerability Information
CVE-2026-42599
Summary

Svelte is a performance oriented web framework. Prior to version 5.55.7, when using spread syntax to render attributes from untrusted data, event handler properties are included in the rendered HTML output. If an application spreads user-controlled or external data as element attributes, an attacker can inject malicious event handlers that execute in victims' browsers. Note that this vulnerability only triggers if the user's browser has JavaScript enabled but Svelte's hydration mechanism does not reach the vulnerable element before the event fires. This issue has been patched in version 5.55.7.

Publication Date June 10, 2026, 2:17 a.m.
Registration Date June 10, 2026, 4:17 a.m.
Last Update June 12, 2026, 3:41 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:svelte:svelte:*:*:*:*:*:node.js:*:* 5.55.7
Related information, measures and tools
Common Vulnerabilities List