Improper input validation in spatie/browsershot
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
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).
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | spatie/browsershot | before 5.0.3 | 5.0.3 | Patch available | CNA |
| — | spatie/browsershot (Packagist) | before 5.0.3 | 5.0.3 | Patch available | GHSA-c9f5-29f6-c35w |
- spatie/browsershot Vendor— Affected before 5.0.3 Fixed in 5.0.3 Patch available CNA
- spatie/browsershot (Packagist) Vendor— Affected before 5.0.3 Fixed in 5.0.3 Patch available GHSA-c9f5-29f6-c35w
Remediation
- Fix · CNA spatie/browsershot Fixed in 5.0.3
- Fix · GHSA-c9f5-29f6-c35w spatie/browsershot (Packagist) Fixed in 5.0.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21549
- 2026-10-03 Alias added: GHSA-c9f5-29f6-c35w
References
Sources
- CVE-2024-21549 · CVE Program
- CVE-2024-21549 · NVD
- FIRST EPSS
- GHSA-c9f5-29f6-c35w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences