Skip to content
OpenAdvisories
High · 7.5 CVE-2026-126779 EUVD-2026-123773GHSA-wp7g-f22j-79fp

Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()

Published Nov 11, 2026 · Updated Nov 13, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
spatie browsershot 2.2.0 – < 5.5.0 5.5.0

References