{"id":"CVE-2026-142638","aliases":["GHSA-9966-43cq-4mpr"],"url":"https://o3.security/vulnerability/CVE-2026-142638","summary":"Laravel: Unescaped bound attributes on Blade dynamic components that resolve to class-based components","details":"### Impact\n\nBlade'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.\n\n### Patches\n\nThe 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.","published":"2026-12-02T22:45:28.101Z","modified":"2026-12-03T21:02:21.867407703Z","cvss":{"score":4.2,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"13.43.0"},{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"12.73.0"}],"fix":{"url":"https://github.com/laravel/framework/commit/6ba5a0ba058389f3b72338a3fe2c9cd04240c93c","label":"laravel/framework@6ba5a0b"},"references":[{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v12.73.0"},{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v13.43.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142638.json"},{"type":"ADVISORY","url":"https://github.com/laravel/framework/security/advisories/GHSA-9966-43cq-4mpr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142638"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/6ba5a0ba058389f3b72338a3fe2c9cd04240c93c"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/98d49e77d3820f6ad4f9718efba7f236fff972c7"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/62455"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/62456"},{"type":"PACKAGE","url":"https://github.com/laravel/framework"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-12-03T21:02:21.867407703Z"}}