Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Spatie/browsershot versions before 5.0.5 are vulnerable to improper input validation in the setHtml function, which Browsershot::html() calls. The check that blocks file URI schemes in HTML content can be bypassed by omitting the slashes, allowing an attacker who controls HTML input to read local files. Upgrade to version 5.0.5 or later.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 8.8 | High | 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P | CNA (snyk) |
- CISA KEV Not listed.
- EPSS 0.0047, the 41st percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:28 UTC First seen by agentprime
- 31 Oct 2026, 14:28 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-j2gw-r24m-j2qw
- OSV: GHSA-j2gw-r24m-j2qw
- nvd.nist.gov/vuln/detail/CVE-2025-1022
- github.com/spatie/browsershot/commit/bcfd608b264fab654bf78e199bdfbb03e9323eb7
- github.com/spatie/browsershot/commit/e3273974506865a24fbb5b65b534d8d4b8dfbf72
- gist.github.com/mrdgef/a820837c530e09e1dd725e013e0d4341
- github.com/spatie/browsershot
- security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496747