Spatie Browsershot 2.2.0 before 5.5.0 contains a local file read vulnerability that allows attackers to read server files by supplying root-relative references in HTML passed to setHtml().
- CVSS
- 7.5High
- Chance of exploitation (EPSS)
- 0.44%
- Published
- Nov 11, 2026
- In the news
- Not yet
What to do
A serious security flaw in Spatie Browsershot that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Fixed in: 5.5.0
Affected versions
- Spatie Browsershot
- 2.2.0 to before 5.5.0
Description
Spatie Browsershot 2.2.0 before 5.5.0 contains a local file read vulnerability that allows attackers to read server files by supplying root-relative references in HTML passed to setHtml(). Attackers can embed iframe, img, link or script elements referencing paths like /etc/passwd, which resolve to file:// URLs and render file contents into the returned PDF or screenshot.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-126779 published (CVSS 7.5) (Nov 11, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Wed, Nov 11, 2026
- CVECVE-2026-126779 published (CVSS 7.5)CVE Program · 19:17 UTC
References 5
- github.com /spatie/browsershot/blob/2.2.0/src/Browsershot.php#L242-L248
- github.com /spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e94432516
- github.com /spatie/browsershot/pull/989
- github.com /spatie/browsershot/releases/tag/5.5.0
- www.vulncheck.com /advisories/spatie-browsershot-2.2.0-before-5.5.0-local-file-read-via-sethtml