CVE-2021-43808

Blade `@parent` Exploitation Leading To Possible XSS in Laravel

MEDIUM
6.1
CVSS Score
Published: December 7, 2021 at 10:20 PM UTC
Updated: June 17, 2026 at 04:11 AM UTC
1 product affected across 1 vendorFramework

Using framework by laravel?

Get instant alerts when new vulnerabilities affect framework - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 0.8%

Description

Laravel is a web application framework. Laravel prior to versions 8.75.0, 7.30.6, and 6.20.42 contain a possible cross-site scripting (XSS) vulnerability in the Blade templating engine. A broken HTML element may be clicked and the user taken to another location in their browser due to XSS. This is due to the user being able to guess the parent placeholder SHA-1 hash by trying common names of sections. If the parent template contains an exploitable HTML structure an XSS vulnerability can be exposed. This vulnerability has been patched in versions 8.75.0, 7.30.6, and 6.20.42 by determining the parent placeholder at runtime and using a random hash that is unique to each request.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.20.42v < 7.30.6v < 8.75.07.0.0 ≤ v < 7.30.68.0.0 ≤ v < 8.75.0
Affected range stops below 6.20.42, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.30.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.75.0, so it looks safe — our inference, not a vendor statement

References (8)

x_refsource_MISCPatchThird Party Advisory
https://github.com/laravel/framework/pull/39906
x_refsource_MISCPatchThird Party Advisory
https://github.com/laravel/framework/pull/39908
x_refsource_MISCPatchThird Party Advisory
https://github.com/laravel/framework/pull/39909
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/laravel/framework/releases/tag/v6.20.42
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/laravel/framework/releases/tag/v7.30.6
x_refsource_MISCRelease NotesThird Party Advisory
https://github.com/laravel/framework/releases/tag/v8.75.0

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79CWE-327

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card