CVE-2021-43808
Blade `@parent` Exploitation Leading To Possible XSS in Laravel
Also known as GHSA-66hf-2p6w-jqfw
Mitigation
- Upgrade laravel/framework to one of 6.20.42, 7.30.6, 8.75.0 (or later in the same release line).
- Upgrade illuminate/view to one of 6.20.42, 7.30.6, 8.75.0 (or later in the same release line).
Who should check
- Projects that depend on Packagist package laravel/framework (< 6.20.42)
- Projects that depend on Packagist package illuminate/view (< 6.20.42)
- Anyone running laravel framework >= 8.0.0, < 8.75.0; >= 7.0.0, < 7.30.6; < 6.20.42
Vulnerability facts
- Affected
- laravel/framework < 6.20.42; illuminate/view < 6.20.42
- Fixed in
- 6.20.42, 7.30.6, 8.75.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.83% chance of exploitation in 30 days (percentile 55, 2026-11-26)
- CWE
- CWE-79
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist laravel/framework | < 6.20.42 | 6.20.42, 7.30.6, 8.75.0 | osv |
| Packagist illuminate/view | < 6.20.42 | 6.20.42, 7.30.6, 8.75.0 | osv |
| laravel framework | >= 8.0.0, < 8.75.0; >= 7.0.0, < 7.30.6; < 6.20.42 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-43808. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-43808.md Affected: laravel/framework < 6.20.42; illuminate/view < 6.20.42 Fixed in: 6.20.42, 7.30.6, 8.75.0 Steps: 1. Search this machine and project for laravel/framework (Packagist), illuminate/view (Packagist), laravel framework: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://github.com/laravel/framework/releases/tag/v6.20.42
- https://github.com/laravel/framework/releases/tag/v7.30.6
- https://github.com/laravel/framework/releases/tag/v8.75.0
- https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/view/CVE-2021-43808.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-43808.yaml
- https://github.com/laravel/framework
FAQ
Is CVE-2021-43808 being exploited?
There is no confirmed exploitation: CVE-2021-43808 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.83% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-43808?
Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2021-43808?
laravel/framework < 6.20.42; illuminate/view < 6.20.42.
Is there a fix for CVE-2021-43808?
Yes. Fixed in 6.20.42, 7.30.6, 8.75.0. Upgrade laravel/framework to one of 6.20.42, 7.30.6, 8.75.0 (or later in the same release line). Upgrade illuminate/view to one of 6.20.42, 7.30.6, 8.75.0 (or later in the same release line).
How do I check if I'm affected by CVE-2021-43808?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.