Packagist
CVE-2026-126779
Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()
- Severity
- High 8.7
- Published
- 11 Nov 2026
- Last changed
- 13 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 5.5.0
- Exploit chance
- 0.4% in the next 30 daysHigher than 32% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- CWE-73
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N- Sources
- CVE Program
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 software
| Software | Affected versions |
|---|---|
spatie/browsershotPackagist · osv:Packagist:spatie/browsershot |
|
About spatie/browsershot
- Monthly downloads (Packagist)
- 2,980,846Packagist, 24 Nov 2026
- Total downloads (Packagist)
- 48,219,557Packagist, 24 Nov 2026
This is the only vulnerability in spatie/browsershot in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-126779