P2 · HighCVSS 7.5EPSS 0.4%
Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()
- CVE-2026-126779
- GHSA-wp7g-f22j-79fp
- EUVD-2026-123773
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.
Text from the CVE.org record.
Recommendation
spatie browsershot
- If you run a version from 2.2.0 to before 5.5.0update to 5.5.0 or laterMajor version change: expect breaking changes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
spatie browsershot
Affected versions Fixed in from 2.2.0 to before 5.5.0 5.5.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.