CVE-2024-21544: spatie/browsershot · Improper Input Validation
Affects spatie/browsershotSource CVE Database V5
Not known to be exploited · CVSS 7.7 High : upgrade to 5.0.1 soon.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.0.1
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:PExploitation evidence
Disclosed: evidence found.
CVE published 13 Dec 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade spatie/browsershot to 5.0.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| spatie/browsershot | Affected
| Fixed in
|
AI-suggested
Upgrade to spatie/browsershot version 5.0.1 or later, where this improper input validation vulnerability is fixed. No other mitigations are indicated. Patch status is confirmed by the version boundary (<5.0.1) and the advisory.
Description
Versions of the package spatie/browsershot before 5.0.1 are vulnerable to Improper Input Validation due to improper URL validation in the setUrl method. An attacker can exploit this vulnerability by using leading whitespace (%20) before the file:// protocol, resulting in Local File Inclusion, which allows the attacker to read sensitive files on the server.
References
- security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745 (opens in a new tab)
- github.com/spatie/browsershot/blob/1e212b596c104138550ed4ef1b9977d8df570c67/src/Browsershot.php%23L258-L269 (opens in a new tab)
- github.com/spatie/browsershot/commit/fae8396641b961f62bd756920b14f01a4391296e (opens in a new tab)