CVE-2026-126779 json
Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()
published 16h ago modified 15h ago also EUVD-2026-123773
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no EPSS score yet
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- spatie browsershot 5.5.0
- github.com/spatie/browsershot@eba71ab commit
- github.com/spatie/browsershot#989 pull request
- github.com/spatie/browsershot/releases/tag/5.5.0 release
Is CVE-2026-126779 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | 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 |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CNA | 4.0 | 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected products
- spatie browsershot
Classification
- Weakness
-
- CWE-73 External Control of File Name or Path
References
-
github.com
/spatie/browsershot/pull/989
patch, issue-tracking
-
github.com
/spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e94432516
patch
-
github.com
/spatie/browsershot/releases/tag/5.5.0
release-notes
-
github.com
/spatie/browsershot/blob/2.2.0/src/Browsershot.php#L242-L248
technical-description
-
vulncheck.com
/advisories/spatie-browsershot-2.2.0-before-5.5.0-local-file-read-via-sethtml
third-party-advisory
Sources
- CVE List CVE-2026-126779
- NVD CVE-2026-126779
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.