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
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method, which results in a Local File Inclusion allowing the attacker to read sensitive files. **Note:** This is a bypass of the fix for [CVE-2024-21549](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023).
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
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.5 | 5.0.5 | Patch available | CNA |
| — | spatie/browsershot (Packagist) | before 5.0.5 | 5.0.5 | Patch available | GHSA-f2q5-6mx7-q9qq |
- spatie/browsershot Vendor— Affected before 5.0.5 Fixed in 5.0.5 Patch available CNA
- spatie/browsershot (Packagist) Vendor— Affected before 5.0.5 Fixed in 5.0.5 Patch available GHSA-f2q5-6mx7-q9qq
Remediation
- Fix · CNA spatie/browsershot Fixed in 5.0.5
- Fix · GHSA-f2q5-6mx7-q9qq spatie/browsershot (Packagist) Fixed in 5.0.5 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
spatie/browsershot 5.0.5
2 records Highest priority Priority HIGH 2 HIGH
Other records, highest priority first
- TI-2025-00864 Improper input validation in spatie/browsershotPriority HIGH 77
Timeline
- 2026-10-02 Threatist record created from CVE-2025-1026
- 2026-10-03 Alias added: GHSA-f2q5-6mx7-q9qq
References
Other 5
- https://gist.github.com/chuajianshen/6291920112fcf1543fa7b43862112be6
- https://github.com/spatie/browsershot/pull/908
- https://gist.github.com/mrdgef/54a8783408220c67c1b859df38a52d65
- https://github.com/spatie/browsershot/commit/e3273974506865a24fbb5b65b534d8d4b8dfbf72
- https://github.com/spatie/browsershot
Sources
- CVE-2025-1026 · CVE Program
- CVE-2025-1026 · NVD
- FIRST EPSS
- GHSA-f2q5-6mx7-q9qq · 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