Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-43808

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-43808
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:00 UTC · Revision 1

Source evidence

CVE-2021-43808

core-osv · Original source

Published 8 Dec 2021, 00:15 UTC

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.

osv:CVE-2021-43808
Complete source record
{
  "id": "5ca1a76334731cdea7f5949eacb0626caaae216df917a34f3c530d919e48f573",
  "url": "https://osv.dev/vulnerability/CVE-2021-43808",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-43808",
    "summary": "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.",
    "evidence": "osv:CVE-2021-43808",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-43808",
      "aliases": [
        "CVE-2021-43808",
        "GHSA-66hf-2p6w-jqfw"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/laravel/framework",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "251e09a2ecf41241b9892fe490eb301d5c9721b9"
                },
                {
                  "introduced": "0b12ef19623c40e22eff91a4b48cb13b3b415b25"
                },
                {
                  "fixed": "ecdafad1dda3c790af186a6d18479ea4757ef9ee"
                },
                {
                  "introduced": "43bea00fd27c76c01fd009e46725a54885f4d2a5"
                },
                {
                  "fixed": "0bb91d3176357da232da69762a64b0e0a0988637"
                },
                {
                  "fixed": "b8174169b1807f36de1837751599e2828ceddb9b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.20.42"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "7.30.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "8.0.0"
                      },
                      {
                        "fixed": "8.75.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b8174169b1807f36de1837751599e2828ceddb9b"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "251e09a2ecf41241b9892fe490eb301d5c9721b9"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v6.20.42"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ecdafad1dda3c790af186a6d18479ea4757ef9ee"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v7.30.6"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0bb91d3176357da232da69762a64b0e0a0988637"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v8.75.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v8.74.0",
            "v8.73.2",
            "v6.20.41",
            "v8.73.1",
            "v8.73.0",
            "v7.30.5",
            "v6.20.40",
            "v8.72.0",
            "v6.20.39",
            "v8.71.0",
            "v8.70.2",
            "v6.20.38",
            "v8.70.1",
            "v8.70.0",
            "v6.20.37",
            "v8.68.0",
            "v6.20.36",
            "v8.67.0",
            "v8.66.0",
            "v8.65.0",
            "v8.64.0",
            "v8.63.0",
            "v8.62.0",
            "v8.61.0",
            "v8.60.0",
            "v8.59.0",
            "v6.20.34",
            "v6.20.33",
            "v8.58.0",
            "v8.57.0",
            "v8.56.0",
            "v6.20.32",
            "v8.55.0",
            "v8.54.0",
            "v6.20.31",
            "v8.53.1",
            "v8.53.0",
            "v8.52.0",
            "v8.51.0",
            "v8.50.0",
            "v6.20.30",
            "v8.49.2",
            "v8.49.1",
            "v8.49.0",
            "v8.48.2",
            "v8.48.1",
            "v8.48.0",
            "v6.20.28",
            "v8.47.0",
            "v8.46.0",
            "v8.45.1",
            "v8.45.0",
            "v8.44.0",
            "v8.43.0",
            "v8.42.1",
            "v8.42.0",
            "v8.41.0",
            "v8.40.0",
            "v6.20.25",
            "v6.20.24",
            "v8.38.0",
            "v6.20.23",
            "v8.36.0",
            "v6.20.22",
            "v8.35.1",
            "v8.35.0",
            "v6.20.21",
            "v6.20.20",
            "v6.20.19",
            "v8.33.0",
            "v6.20.18",
            "v8.32.1",
            "v8.32.0",
            "v8.31.0",
            "v6.20.17",
            "v8.30.0",
            "v8.30.1",
            "v8.29.0",
            "v8.28.1",
            "v8.28.0",
            "v8.27.0",
            "v6.20.16",
            "v8.26.1",
            "v8.26.0",
            "v7.30.4",
            "v8.25.0",
            "v6.20.15",
            "v6.20.14",
            "v8.24.0",
            "v8.23.1",
            "v6.20.13",
            "v8.23.0",
            "v6.20.12",
            "v6.20.11",
            "v8.22.1",
            "v8.22.0",
            "v6.20.10",
            "v6.20.9",
            "v8.21.0",
            "v8.20.1",
            "v7.30.1",
            "v6.20.8",
            "v8.20.0",
            "v8.19.0",
            "v6.20.7",
            "v8.17.2",
            "v8.17.1",
            "v7.30.0",
            "v6.20.6",
            "v8.17.0",
            "v8.16.0",
            "v6.20.5",
            "v6.20.4",
            "v8.15.0",
            "v8.14.0",
            "v6.20.3",
            "v7.29.3",
            "v6.20.2",
            "v8.13.0",
            "v7.29.2",
            "v8.12.3",
            "v8.12.2",
            "v8.12.1",
            "v7.29.1",
            "v6.20.1",
            "v8.12.0",
            "v6.20.0",
            "v7.29.0",
            "v8.11.2",
            "v6.19.1",
            "v8.11.0",
            "v8.11.1",
            "v6.19.0",
            "v6.18.43",
            "v7.28.4",
            "v6.18.42",
            "v8.9.0",
            "v8.8.0",
            "v8.7.1",
            "v6.18.41",
            "v8.7.0",
            "v8.6.0",
            "v7.28.3",
            "v8.5.0",
            "v8.4.0",
            "v8.3.0",
            "v7.28.2",
            "v6.18.40",
            "v8.2.0",
            "v8.1.0",
            "v8.0.4",
            "v8.0.3",
            "v7.28.1",
            "v8.0.2",
            "v8.0.1",
            "v7.28.0",
            "v6.18.39",
            "v8.0.0",
            "v7.27.0",
            "v6.18.38",
            "v6.18.37",
            "v7.26.1",
            "v7.26.0",
            "v6.18.36",
            "v6.18.35",
            "v7.25.0",
            "v7.24.0",
            "v6.18.34",
            "v7.23.2",
            "v7.23.1",
            "v6.18.33",
            "v7.23.0",
            "v6.18.32",
            "v7.22.4",
            "v6.18.31",
            "v7.22.3",
            "v6.18.30",
            "v7.22.2",
            "v6.18.29",
            "v7.22.1",
            "v6.18.28",
            "v7.22.0",
            "v6.18.27",
            "v7.21.0",
            "v6.18.26",
            "v7.20.0",
            "v6.18.25",
            "v7.19.1",
            "v7.19.0",
            "v6.18.24",
            "v6.18.23",
            "v7.18.0",
            "v6.18.22",
            "v7.17.2",
            "v6.18.21",
            "v7.17.1",
            "v7.17.0",
            "v7.16.1",
            "v6.18.20",
            "v7.16.0",
            "v6.18.19",
            "v7.15.0",
            "v6.18.18",
            "v7.14.1",
            "v6.18.17",
            "v7.13.0",
            "v6.18.16",
            "v7.12.0",
            "v6.18.15",
            "v7.11.0",
            "v7.10.3",
            "v7.10.2",
            "v6.18.13",
            "v7.10.1",
            "v7.10.0",
            "v6.18.12",
            "v6.18.11",
            "v7.9.2",
            "v7.9.1",
            "v7.9.0",
            "v7.8.1",
            "v7.8.0",
            "v6.18.10",
            "v7.7.1",
            "v6.18.9",
            "v7.7.0",
            "v7.6.2",
            "v6.18.8",
            "v6.18.7",
            "v7.6.1",
            "v7.6.0",
            "v7.5.2",
            "v6.18.6",
            "v7.5.1",
            "v6.18.5",
            "v6.18.4",
            "v7.5.0",
            "v7.4.0",
            "v6.18.3",
            "v7.3.0",
            "v7.2.2",
            "v7.2.1",
            "v6.18.2",
            "v7.2.0",
            "v7.1.3",
            "v7.1.2",
            "v7.1.1",
            "v6.18.1",
            "v7.1.0",
            "v7.0.8",
            "v7.0.7",
            "v7.0.6",
            "v7.0.5",
            "v7.0.4",
            "v7.0.3",
            "v6.18.0",
            "v7.0.2",
            "v7.0.1",
            "v7.0.0",
            "v6.17.1",
            "v6.17.0",
            "v6.16.0",
            "v6.15.1",
            "v6.15.0",
            "v6.14.0",
            "v6.13.1",
            "v6.13.0",
            "v6.12.0",
            "v6.11.0",
            "v6.10.1",
            "v6.10.0",
            "v6.9.0",
            "v6.8.0",
            "v6.7.0",
            "v6.6.2",
            "v6.6.1",
            "v6.6.0",
            "v6.5.2",
            "v6.5.1",
            "v6.5.0",
            "v6.4.1",
            "v6.4.0",
            "v6.3.0",
            "v6.2.0",
            "v6.1.0",
            "v6.0.4",
            "v6.0.3",
            "v6.0.2",
            "v6.0.1",
            "v6.0.0",
            "v5.5.1",
            "v5.5.0",
            "v4.1.0",
            "v4.0.0",
            "v4.0.0-BETA4",
            "v4.0.0-BETA3",
            "v4.0.0-BETA2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43808.json"
          }
        }
      ],
      "modified": "2026-10-20T10:55:04.314245742Z",
      "provider": "osv",
      "references": [
        "https://github.com/laravel/framework/releases/tag/v6.20.42",
        "https://github.com/laravel/framework/releases/tag/v7.30.6",
        "https://github.com/laravel/framework/releases/tag/v8.75.0",
        "https://github.com/laravel/framework/commit/b8174169b1807f36de1837751599e2828ceddb9b",
        "https://github.com/laravel/framework/pull/39906",
        "https://github.com/laravel/framework/pull/39908",
        "https://github.com/laravel/framework/pull/39909",
        "https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-43808",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386823,
  "published_at": "2021-12-08T00:15:07.683+00:00"
}