# Browsershot Improper Input Validation vulnerability

Advisory record · `GHSA-c9f5-29f6-c35w`

- **Identifiers:** `GHSA-c9f5-29f6-c35w` · `CVE-2024-21549` · `PKSA-318x-z311-x7rh`
- **State:** Confirmed
- **Severity:** CVSS 7.7 High
- **Critical:** No
- **Weakness (CWE):** [CWE-20](https://cwe.mitre.org/data/definitions/20.html) · [CWE-125](https://cwe.mitre.org/data/definitions/125.html) · [CWE-200](https://cwe.mitre.org/data/definitions/200.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md) · [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md) · [CWE-20](https://agentprime.io/advisories/tag/cwe-20.md)
- **Published:** 20 Dec 2024
- **Updated:** 4 Feb 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 20 Dec 2024, 06:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `spatie/browsershot` (Packagist): affected `<5.0.3`; fixed in `5.0.3`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Browsershot versions before 5.0.3 are vulnerable to improper input validation in the setUrl method, which fails to properly validate URLs. An attacker who can supply a URL to the library can read arbitrary local files on the server. Upgrade to spatie/browsershot 5.0.3 or later. The source gives few details about other conditions.

Written 4 Nov 2026.

## 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

- 7.7 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P`, from CNA (snyk)

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

## Timeline

- 31 Oct 2026, 14:28 UTC: First seen by agentprime
- 31 Oct 2026, 14:28 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-c9f5-29f6-c35w)

## Sources

- [GitHub Advisory Database: GHSA-c9f5-29f6-c35w](https://github.com/advisories/GHSA-c9f5-29f6-c35w)
- [OSV: GHSA-c9f5-29f6-c35w](https://osv.dev/vulnerability/GHSA-c9f5-29f6-c35w)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21549>
- <https://github.com/spatie/browsershot/commit/f791ce0ae8dd99367dbfa30588ee31e1196e1728>
- <https://github.com/spatie/browsershot>
- <https://github.com/spatie/browsershot/discussions/906>
- <https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023>

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-c9f5-29f6-c35w>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-c9f5-29f6-c35w/>. Everything for agents: <https://agentprime.io/llms.txt>.
