Katalog CVE

CVE-2026-142638

ŚrednieCVSS 4.2
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.29%

Percentyl 23 - wyżej niż 23% wszystkich znanych CVE

Streszczenie

W Laravelu przed wersjami 13.43.0 i 12.73.0 dyrektywa Blade <x-dynamic-component> nie escapowała atrybutów wiązanych (:attr="$value"), gdy celem był komponent klasowy. Jeśli dane kontrolowane przez użytkownika były wiązane z atrybutem niebędącym parametrem konstruktora i komponent wypisywał {{ $attributes }}, wartość mogła wyłamać się z atrybutu HTML i doprowadzić do XSS.

Ocena ryzyka

Może to umożliwić atakującemu wykonanie złośliwego skryptu w przeglądarce użytkownika (XSS), a istniejące skompilowane widoki pozostają podatne do czasu ich wyczyszczenia.

Rekomendacja

Zaktualizuj Laravel do wersji 13.43.0 lub 12.73.0 oraz wyczyść lub przekompiluj widoki poleceniem php artisan view:clear lub php artisan view:cache.

Inne podatności w Laravel

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, 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 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. Existing compiled views retain the vulnerable behavior until they are cleared or recompiled with php artisan view:clear or php artisan view:cache. This issue is fixed in versions 13.43.0 and 12.73.0.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS