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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-07T22:20:12.000Z
- Modified: 2026-07-08T06:27:53.544Z
- Also known as: GHSA-66hf-2p6w-jqfw
- Weaknesses: CWE-79, CWE-327
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- laravel framework: >= 8.0.0, < 8.75.0; >= 7.0.0, < 7.30.6; < 6.20.42; before 6.20.42; from 7.0.0 before 7.30.6; from 8.0.0 before 8.75.0
- laravel/framework (Packagist): before 6.20.42; from 7.0.0 before 7.30.6; from 8.0.0 before 8.75.0
- illuminate/view (Packagist): before 6.20.42; from 7.0.0 before 7.30.6; from 8.0.0 before 8.75.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw> (exploit, third-party-advisory, web)
- <https://github.com/laravel/framework/pull/39906> (patch, third-party-advisory, web)
- <https://github.com/laravel/framework/pull/39908> (patch, third-party-advisory, web)
- <https://github.com/laravel/framework/pull/39909> (patch, third-party-advisory, web)
- <https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b> (patch, third-party-advisory, web)
- <https://github.com/laravel/framework/releases/tag/v6.20.42> (release-notes, third-party-advisory, web)
- <https://github.com/laravel/framework/releases/tag/v7.30.6> (release-notes, third-party-advisory, web)
- <https://github.com/laravel/framework/releases/tag/v8.75.0> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43808> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/view/CVE-2021-43808.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-43808.yaml> (web)
- <https://github.com/laravel/framework> (package)

## Sources

- CVE List: [CVE-2021-43808](https://www.cve.org/CVERecord?id=CVE-2021-43808), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-66hf-2p6w-jqfw](https://github.com/advisories/GHSA-66hf-2p6w-jqfw), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-43808](https://nvd.nist.gov/vuln/detail/CVE-2021-43808), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43808 · Whole record: https://cve.day/CVE-2021-43808.json · Rebuilt by cve.day 2026-11-25T22:24:36.172Z
