CVE-2021-43808Laravel Framework
Medium 6.1 No auth needed
Follow: this CVE · Laravel · Laravel Framework We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 55
- Auth required
- No
- Published
- Dec 8, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Framework.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | illuminate/view |
< 6.20.42 |
6.20.42 |
composer require "illuminate/view:^6.20.42" |
| Packagist | illuminate/view |
≥ 7.0.0 < 7.30.6 |
7.30.6 |
composer require "illuminate/view:^7.30.6" |
| Packagist | illuminate/view |
≥ 8.0.0 < 8.75.0 |
8.75.0 |
composer require "illuminate/view:^8.75.0" |
| Packagist | laravel/framework |
< 6.20.42 |
6.20.42 |
composer require "laravel/framework:^6.20.42" |
| Packagist | laravel/framework |
≥ 7.0.0 < 7.30.6 |
7.30.6 |
composer require "laravel/framework:^7.30.6" |
| Packagist | laravel/framework |
≥ 8.0.0 < 8.75.0 |
8.75.0 |
composer require "laravel/framework:^8.75.0" |
Per OSV / GitHub Advisories (GHSA-66hf-2p6w-jqfw). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| laravel | framework | < 6.20.42 |
| laravel | framework | ≥ 7.0.0 < 7.30.6 |
| laravel | framework | ≥ 8.0.0 < 8.75.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Exploit Third Party Advisory