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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| spatie/browsershot(Packagist) | >= 2.2.0, < 5.5.0 | 5.5.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| spatie/browsershot(Packagist) | >= 2.2.0, < 5.5.0 | 5.5.0 |
References
- github.com issue-tracking patch
- github.com patch
- browsershot 5.5.0 Release Notes release-notes
- github.com technical-description
- VulnCheck Advisory: Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml() third-party-advisory
- ENISA EUVD EUVD-2026-123773 third-party-advisory