MediumGHSA-hv67-wfqj-w9xvCVE-2026-142642

Laravel: XSS via unescaped Stringable values in Blade component attribute bag

Published 3 Dec 2026 · Updated 3 Dec 2026

Affected packages

Affected
>=13.0.0 <13.43.0
Fixed in
13.43.0
Update to the fixed version for your release line, for example:composer require laravel/framework:^13.43.0
Affected
<12.73.0
Fixed in
12.73.0
Update to the fixed version for your release line, for example:composer require laravel/framework:^12.73.0

We confirm your address first. See our privacy policy.

Which laravel/framework does your project really install?

Drop your composer.lock hereWe find the exact laravel/framework version you install, even when another package pulls it in, and tell you if it’s affected and what to run. Free, no sign-up.

Works for private projects: the file is read in memory to run the scan and then dropped. Also reads composer.json.

Public repo?

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Details

Impact

Blade component attribute bags did not HTML-escape non-Htmlable object values, such as Illuminate\Support\Stringable, passed to ComponentAttributeBag::merge() or prepends(). Applications that place user-controlled Stringable values (for example, the result of request()->string()) into component attributes could allow an attacker to break out of the attribute and inject arbitrary attributes, such as event handlers. This results in cross-site scripting that runs in the origin of the application.

Patches

The fix escapes all attribute values except null, booleans and Htmlable instances, and also escapes values wrapped with prepends(). It was merged to the 12.x branch in https://github.com/laravel/framework/pull/62503.

Workarounds

Cast user-controlled values to plain strings, for example request()->string('title')->toString(), before passing them to merge() or prepends().

Is GHSA-hv67-wfqj-w9xv in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected laravel/framework, and gives you the command that fixes it.

More advisories for laravel/framework

  • HighCVE-2026-142610Laravel: Numeric validation can exhaust resources via extreme exponent input · 4 Dec 2026
  • LowCVE-2026-142622Laravel: Cross-Origin Auth Token Leakage Through Broadcasting JSONP Callback · 3 Dec 2026
  • MediumCVE-2026-142637Laravel: Fluent Rule::exists() and Rule::unique() where() values can be interpreted as reserved predicates instead of literal values · 3 Dec 2026
  • MediumCVE-2026-142644Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service · 3 Dec 2026
  • MediumCVE-2026-142649Laravel: `in` / `Rule::in` validation rule bypass via loose comparison · 3 Dec 2026
  • MediumCVE-2026-142643Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB · 3 Dec 2026
All 51 advisories for laravel/framework

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.