# CVE-2021-43808: Blade \`@parent\` Exploitation Leading To Possible XSS in Laravel

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.83% (percentile 55, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-66hf-2p6w-jqfw
- **Published:** 2021-12-07T22:20:12.000Z
- **Modified:** 2026-07-08T06:27:53.544Z

## 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

## 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

- Packagist `laravel/framework`: affected \< 6.20.42; fixed 6.20.42, 7.30.6, 8.75.0 (osv)
- Packagist `illuminate/view`: affected \< 6.20.42; fixed 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)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-43808>
- patch: <https://github.com/laravel/framework/pull/39906>
- patch: <https://github.com/laravel/framework/pull/39908>
- patch: <https://github.com/laravel/framework/pull/39909>
- patch: <https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b>
- other: <https://github.com/laravel/framework/releases/tag/v6.20.42>
- other: <https://github.com/laravel/framework/releases/tag/v7.30.6>
- other: <https://github.com/laravel/framework/releases/tag/v8.75.0>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/view/CVE-2021-43808.yaml>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-43808.yaml>
- other: <https://github.com/laravel/framework>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-43808>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-66hf-2p6w-jqfw> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-43808> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-43808>
