CVE-2021-43808
MEDIUM 6.1CVSS 3.1Laravel Framework XSS in Blade templating engine
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.
- Published
- 8 Dec 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-327CWE-79
- Also known as
- GHSA-66hf-2p6w-jqfw
- Sources
- NVDJSONOSV GHSA-66hf-2p6w-jqfwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | laravel | frameworkcpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:* |
< 6.20.42 | 6.20.42 |
| NVD | laravel | frameworkcpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:* |
>= 7.0.0, < 7.30.6 | 7.30.6 |
| NVD | laravel | frameworkcpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:* |
>= 8.0.0, < 8.75.0 | 8.75.0 |
| OSV | Packagist | laravel/framework | < 6.20.42 | 6.20.42 |
| OSV | Packagist | laravel/framework | >= 7.0.0, < 7.30.6 | 7.30.6 |
| OSV | Packagist | laravel/framework | >= 8.0.0, < 8.75.0 | 8.75.0 |
| OSV | Packagist | illuminate/view | < 6.20.42 | 6.20.42 |
| OSV | Packagist | illuminate/view | >= 7.0.0, < 7.30.6 | 7.30.6 |
| OSV | Packagist | illuminate/view | >= 8.0.0, < 8.75.0 | 8.75.0 |
References
- https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b · Patch, 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/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://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw · Exploit, 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Dec 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 8 Dec 2021)