CVE-2026-126779: spatie browsershot · External Control of File Name or Path
Affects spatie browsershotSource CVE Database V5
Not known to be exploited · CVSS 8.7 High : upgrade to 5.5.0 soon.
Data as of 11 Nov 2026, 19:05 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.7 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.5 |
- Patch
- Available – fixed in 5.5.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 11 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 11 Nov 2026.
What to do
Upgrade spatie browsershot to 5.5.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| spatiebrowsershot | Affected
| Fixed in
|
Packagistbrowsershotpkg:composer/browsershotOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Spatie Browsershot to version 5.5.0 or later, where this vulnerability is fixed. No other mitigations are indicated by the vendor advisory.
Description
CVE-2026-126779 is a local file read vulnerability in Spatie Browsershot versions 2.2.0 up to but not including 5.5.0. The flaw allows attackers to supply root-relative paths in HTML passed to the setHtml() function, causing the software to read and embed local server files into generated PDFs or screenshots. This occurs because elements such as iframe, img, link, or script referencing paths like /etc/passwd are resolved as file:// URLs, exposing sensitive file contents.
References
- github.com/spatie/browsershot/pull/989 (opens in a new tab)
- github.com/spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e94432516 (opens in a new tab)
- github.com/spatie/browsershot/releases/tag/5.5.0 (opens in a new tab)
- github.com/spatie/browsershot/blob/2.2.0/src/Browsershot.php (opens in a new tab)
- vulncheck.com/advisories/spatie-browsershot-2.2.0-before-5.5.0-local-file-read-via-sethtml (opens in a new tab)