SecurityContext

CVE-2021-43808: Laravel - Stored XSS

  • Cve: CVE-2021-43808
  • Name: Laravel - Stored XSS
  • Description: 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.
  • Impact: Attackers can execute malicious scripts in users' browsers, leading to session hijacking, data theft, or site defacement.
  • Remediation: Update to Laravel versions 8.75.0, 7.30.6, or 6.20.42 or later where the issue is patched.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00825
  • Epss percentile: 0.58154
  • Assignee: [email protected]
  • Published at: 2021-12-08T00:15:07Z
  • Age in days: 1812
  • Modified at: 2026-06-17T04:11:28Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 8
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-43808
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation
CWE-327Use of a Broken or Risky Cryptographic Algorithm

Public exploits

UrlSourceAdded date
https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfwnvd2021-12-08

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9bPatch, Third Party Advisory
https://github.com/laravel/framework/pull/39906Patch, Third Party Advisory
https://github.com/laravel/framework/pull/39908Patch, Third Party Advisory
https://github.com/laravel/framework/pull/39909Patch, Third Party Advisory
https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfwExploit, Third Party Advisory
https://github.com/laravel/framework/releases/tag/v6.20.42Release Notes, Third Party Advisory
https://github.com/laravel/framework/releases/tag/v7.30.6Release Notes, Third Party Advisory
https://github.com/laravel/framework/releases/tag/v8.75.0Release Notes, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
laravel:framework>= 8.0.0, < 8.75.0; >= 7.0.0, < 7.30.6; < 6.20.42nonvd/v1/products/laravel/framework

Projects

RepositoryLink kindsIndexedUrl
laravel/frameworkcommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/laravel/framework

Index

  • Repositories: 114
  • Repositories high signal: 74
  • Packages: 2

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-12-08
  • Remote: yes
  • Exposed hosts: 33
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports