# CVE-2025-1026: Browsershot Local File Inclusion

- Severity: High 7.7 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Published: 2025-02-05T05:00:01.940Z
- Modified: 2026-08-19T15:25:42.620Z
- Also known as: GHSA-f2q5-6mx7-q9qq
- Weaknesses: CWE-20, CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: snyk

## 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).

(As written by CVE List.)

## Affected

- spatie/browsershot: before 5.0.5
- spatie/browsershot (Packagist): before 5.0.5

## Every score

- snyk: CVSS:4.0 7.7 High `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: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:P`
- GitHub: CVSS:3.1 8.6 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533024> (web)
- <https://gist.github.com/chuajianshen/6291920112fcf1543fa7b43862112be6> (web)
- <https://github.com/spatie/browsershot/pull/908> (web)
- <https://gist.github.com/mrdgef/54a8783408220c67c1b859df38a52d65> (web)
- <https://github.com/spatie/browsershot/commit/e3273974506865a24fbb5b65b534d8d4b8dfbf72> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1026> (advisory)
- <https://github.com/spatie/browsershot> (package)

## Sources

- CVE List: [CVE-2025-1026](https://www.cve.org/CVERecord?id=CVE-2025-1026), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-f2q5-6mx7-q9qq](https://github.com/advisories/GHSA-f2q5-6mx7-q9qq), CC-BY-4.0, modified 2025-02-05
- NVD: [CVE-2025-1026](https://nvd.nist.gov/vuln/detail/CVE-2025-1026), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-1026 · Whole record: https://cve.day/CVE-2025-1026.json · Rebuilt by cve.day 2026-11-25T22:58:53.797Z
