Skip to content

CVE-2026-126779 Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()

HighCVSS 8.7 EPSS 0.38%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
PHP

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
spatie/browsershot(Packagist) >= 2.2.0, < 5.5.0 5.5.0 Fixed

Affected products

ProductAffected versionsFixed in
spatie/browsershot(Packagist) >= 2.2.0, < 5.5.0 5.5.0

References