Home / spatie/browsershot / spatie/browsershot / CVE-2024-21549
CVE-2024-21549: is it exploited, and which versions of spatie/browsershot are affected and fixed?
CVE-2024-21549 is an improper input validation vulnerability in spatie/browsershot. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: spatie/browsershot before 5.0.3 (GitHub advisory GHSA-c9f5-29f6-c35w). Fixed in 5.0.3 (GitHub advisory GHSA-c9f5-29f6-c35w). Severity: High (7.7, CVSS 4.0, from snyk).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:24 UTC.
What is CVE-2024-21549?
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).
From the CVE record by snyk, last updated August 15, 2026, 15:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| spatie/browsershot | before 5.0.3 | 5.0.3 |
As the CVE record by snyk states it, last updated August 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | spatie/browsershot | < 5.0.3 | 5.0.3 | GHSA-c9f5-29f6-c35w |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 4, 2025. Summary: Browsershot Improper Input Validation vulnerability.
How severe is CVE-2024-21549?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.7 | 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 | snyk |
| High 8.6 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:P | snyk |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-21549 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, December 20, 2024)
- EPSS
- 0.61% probability of exploitation activity in the next 30 days, percentile 50.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-20 Improper Input Validation
- CWE-125 Out-of-bounds Read
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
Where are the vendor advisories and references?
- https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023
- https://github.com/spatie/browsershot/discussions/906
- https://github.com/spatie/browsershot/commit/f791ce0ae8dd99367dbfa30588ee31e1196e1728
Who found and reported it?
- Ahmad Shauqi (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- December 22, 2023
- Published
- December 20, 2024, 05:00 UTC
- CVE record updated
- August 15, 2026, 15:25 UTC by snyk
- NVD
- Deferred, last modified August 6, 2026, 16:16 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:24 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect spatie/browsershot?
- Apr 4, 2025CVE-2025-3192 spatie/browsershot: server-side request forgery (SSRF)
- Feb 5, 2025CVE-2025-1022 spatie/browsershot: improper input validation
- Feb 5, 2025CVE-2025-1026 spatie/browsershot: improper input validation
- Dec 18, 2024CVE-2024-21547 spatie/browsershot: path traversal (reading or writing files outside the intended folder)
- Dec 13, 2024CVE-2024-21544 spatie/browsershot: improper input validation
- Dec 11, 2020CVE-2020-7790 spatie/browsershot: path traversal (reading or writing files outside the intended folder)
Every CVE in spatie/browsershot
Questions about CVE-2024-21549
Is CVE-2024-21549 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.61% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of spatie/browsershot are affected by CVE-2024-21549?
spatie/browsershot before 5.0.3, per the GitHub advisory GHSA-c9f5-29f6-c35w. The tables above give every range the sources list.
Which version fixes CVE-2024-21549?
5.0.3, per the GitHub advisory GHSA-c9f5-29f6-c35w. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-21549?
High (7.7, CVSS 4.0, from snyk). The severity table above shows each score with its source.
Where is the official record of CVE-2024-21549?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.