Live threats

All CVEs / Laravel

CVE-2021-43808Laravel Framework

Medium 6.1 No auth needed

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
Weakness (CWE)
CWE-79, CWE-327
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Framework.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
laravelframework< 6.20.42
laravelframework≥ 7.0.0 < 7.30.6
laravelframework≥ 8.0.0 < 8.75.0

Official sources

References

Links published by the sources. Open them with care.