CVE-2026-126779
Spatie Browsershot 2.2.0 before 5.5.0 contains a local file read …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- 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-set
- nvd.nist.gov/vuln/detail/CVE-2026-126779
- cve.org/CVERecord?id=CVE-2026-126779
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.