本文へ移動
English version →
中 4.2

Unescaped bound attributes on Blade dynamic components that resolve to class-based components

GHSA-9966-43cq-4mpr SecPulse初出

概要

Impact

Blade's <x-dynamic-component> did not HTML-escape bound attributes (:attr="$value") when the target resolved to a class-based component. If user-controlled data was bound to an attribute that is not a constructor parameter and the component outputs {{ $attributes }}, the value co...

影響パッケージ

パッケージ影響を受ける版 → 修正版
composerlaravel/framework
<13.43.0→ >=13.43.0
composerlaravel/framework
<12.73.0→ >=12.73.0
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Impact

Blade's `` did not HTML-escape bound attributes (:attr="$value") when the target resolved to a class-based component. If user-controlled data was bound to an attribute that is not a constructor parameter and the component outputs {{ $attributes }}, the value could break out of the HTML attribute and lead to cross-site scripting (XSS). The same component rendered with its normal tag escaped the value correctly. Anonymous component targets were not affected.

Patches

The fix is merged on the 13.x and 12.x branches: https://github.com/laravel/framework/pull/62455 and https://github.com/laravel/framework/pull/62456. It has not been confirmed as released. Compiled views keep the previous behavior until they are recompiled, so run php artisan view:clear or php artisan view:cache after upgrading.

出典: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく