CVE-2025-1026 Details
Description
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).
A vulnerability exists in the Spatie Browsershot package, specifically in versions prior to 5.0.5, due to improper input validation in the setUrl method. This flaw allows attackers to bypass URL validation, particularly for file URIs, leading to local file inclusion. Exploitation of this vulnerability enables the reading of sensitive files from the server where Browsershot is hosted.
Upgrade Spatie Browsershot to version 5.0.5 or higher.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 5, 2025CISA-ADP
Assessed Feb 5, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/chuajianshen/6291920112fcf1543fa7b43862112be6 | [email protected] | ExploitTechnical Description |
| https://gist.github.com/mrdgef/54a8783408220c67c1b859df38a52d65 | [email protected] | ExploitTechnical Description |
| https://github.com/spatie/browsershot/commit/e3273974506865a24fbb5b65b534d8d4b8dfbf72 | [email protected] | Source CodeVendor |
| https://github.com/spatie/browsershot/pull/908 | [email protected] | Issue TrackingVendor |
| https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533024 | [email protected] | AdvisoryExploitRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| spatie/browsershot | < 5.0.5 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Feb 5, 2025 | New CVE Received | [email protected] |
Volerion