# Laravel Framework XSS in Blade templating engine

Advisory record · `GHSA-66hf-2p6w-jqfw`

- **Identifiers:** `GHSA-66hf-2p6w-jqfw` · `CVE-2021-43808` · `PKSA-h74q-2n9z-j6wq` · `PKSA-njrm-6dtg-m2pc`
- **State:** Confirmed
- **Severity:** CVSS 5.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html) · [CWE-327](https://cwe.mitre.org/data/definitions/327.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md) · [Weak cryptography or TLS](https://agentprime.io/advisories/tag/weak-crypto.md)
- **Published:** 8 Dec 2021
- **Updated:** 8 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 8 Dec 2021, 19:57 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `laravel/framework` (Packagist): affected `<6.20.42 || >=7.0.0, <7.30.6 || >=8.0.0, <8.75.0`; fixed in `6.20.42`, `7.30.6`, `8.75.0`
- `illuminate/view` (Packagist): affected `<6.20.42 || >=7.0.0, <7.30.6 || >=8.0.0, <8.75.0`; fixed in `6.20.42`, `7.30.6`, `8.75.0`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.3 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0083, the 58th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 7 Dec 2021, 19:38 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw)

## Sources

- [GitHub Advisory Database: GHSA-66hf-2p6w-jqfw](https://github.com/advisories/GHSA-66hf-2p6w-jqfw)
- [OSV: GHSA-66hf-2p6w-jqfw](https://osv.dev/vulnerability/GHSA-66hf-2p6w-jqfw)
- <https://github.com/laravel/framework/security/advisories/GHSA-66hf-2p6w-jqfw>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43808>
- <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/commit/b8174169b1807f36de1837751599e2828ceddb9b>
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/view/CVE-2021-43808.yaml>
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-43808.yaml>
- <https://github.com/laravel/framework>
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-66hf-2p6w-jqfw>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-66hf-2p6w-jqfw/>. Everything for agents: <https://agentprime.io/llms.txt>.
