Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. laravel/framework
  4. ›
  5. CVE-2021-43808

CVE-2021-43808: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

December 8, 2021 (updated August 9, 2022)

Laravel is a web application framework. Laravel 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 by determining the parent placeholder at runtime and using a random hash that is unique to each request.

References

  • github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw
  • nvd.nist.gov/vuln/detail/CVE-2021-43808

Code Behaviors & Features

Detect and mitigate CVE-2021-43808 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.20.42, all versions starting from 7.0.0 before 7.30.6, all versions starting from 8.0.0 before 8.75.0

Fixed versions

  • 6.20.42
  • 7.30.6
  • 8.75.0

Solution

Upgrade to versions 6.20.42, 7.30.6, 8.75.0 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-327: Use of a Broken or Risky Cryptographic Algorithm

Source file

packagist/laravel/framework/CVE-2021-43808.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:14 +0000.