CVE-2021-43808 json
Blade `@parent` Exploitation Leading To Possible XSS in Laravel
published 2021-12-07 4 y ago modified 2026-07-08 4 mo ago also GHSA-66hf-2p6w-jqfw , EUVD-2021-2455
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist laravel/framework 6.20.42, 7.30.6, 8.75.0
- packagist illuminate/view 6.20.42, 7.30.6, 8.75.0
- laravel framework 6.20.42, 7.30.6, 8.75.0
- php-laravel-framework Debian 14, Debian 13, Debian 12 6.20.14+dfsg-3
debian advisories DEBIAN-CVE-2021-43808
- github.com/laravel/framework@b817416 commit
- github.com/laravel/framework#39906 pull request
- github.com/laravel/framework#39908 pull request
- github.com/laravel/framework#39909 pull request
- github.com/laravel/framework/releases/tag/v6.20.42 release
- github.com/laravel/framework/releases/tag/v7.30.6 release
- github.com/laravel/framework/releases/tag/v8.75.0 release
Exploit prediction
0.83% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | laravel/framework | <6.20.42 >=7.0.0, <7.30.6 >=8.0.0, <8.75.0 |
6.20.42 7.30.6 8.75.0 |
| packagist | illuminate/view | <6.20.42 >=7.0.0, <7.30.6 >=8.0.0, <8.75.0 |
6.20.42 7.30.6 8.75.0 |
Affected products
- laravel framework
Classification
References
-
github.com
/laravel/framework/pull/39906
web, patch, third-party-advisory
-
github.com
/laravel/framework/pull/39908
web, patch, third-party-advisory
-
github.com
/laravel/framework/pull/39909
web, patch, third-party-advisory
-
github.com
/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b
web, patch, third-party-advisory
-
github.com
/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw
web, exploit, third-party-advisory
-
github.com
/laravel/framework/releases/tag/v6.20.42
web, release-notes, third-party-advisory
-
github.com
/laravel/framework/releases/tag/v7.30.6
web, release-notes, third-party-advisory
-
github.com
/laravel/framework/releases/tag/v8.75.0
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-43808
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/illuminate/view/CVE-2021-43808.yaml
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-43808.yaml
web
-
github.com
/laravel/framework
package
Sources
- CVE List CVE-2021-43808
- GitHub Advisory GHSA-66hf-2p6w-jqfw
- NVD CVE-2021-43808
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.