# CVE-2024-21549: Browsershot Improper Input Validation vulnerability

- Severity: High 7.7 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2024-12-20T05:00:01.462Z
- Modified: 2026-08-15T15:25:14.543Z
- Also known as: GHSA-c9f5-29f6-c35w
- Weaknesses: CWE-20, CWE-125, CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## Description

Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation in the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file.

**Note:**

This is a bypass of the fix for [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).

(As written by CVE List.)

## Affected

- spatie/browsershot: before 5.0.3
- spatie/browsershot (Packagist): before 5.0.3

## Every score

- snyk: CVSS:4.0 7.7 High `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`
- snyk: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:P`
- GitHub: CVSS:3.1 8.6 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023> (web)
- <https://github.com/spatie/browsershot/discussions/906> (web)
- <https://github.com/spatie/browsershot/commit/f791ce0ae8dd99367dbfa30588ee31e1196e1728> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21549> (advisory)
- <https://github.com/spatie/browsershot> (package)

## Sources

- CVE List: [CVE-2024-21549](https://www.cve.org/CVERecord?id=CVE-2024-21549), CVE Terms of Use, modified 2026-08-15
- GitHub Advisory Database: [GHSA-c9f5-29f6-c35w](https://github.com/advisories/GHSA-c9f5-29f6-c35w), CC-BY-4.0, modified 2025-02-04
- NVD: [CVE-2024-21549](https://nvd.nist.gov/vuln/detail/CVE-2024-21549), Public domain, modified 2026-08-06

---

Page: https://cve.day/CVE-2024-21549 · Whole record: https://cve.day/CVE-2024-21549.json · Rebuilt by cve.day 2026-11-25T22:58:50.284Z
