Vulnerability record
CVE-2026-126779
The short answer
CVE-2026-126779 affects spatie browsershot and is rated high (CVSS 8.7). It is not in CISA's Known Exploited Vulnerabilities catalog.
What it is
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.
Weakness: CWE-73.
Severity
8.7 high
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
Exploited (CISA KEV)
Not listed
CISA lists confirmed exploitation only
EPSS, next 30 days
No score
FIRST scores CVEs within a day of publication
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Affected products
browsershot. NVD's record lists the exact affected versions.
References
- github.com/spatie/browsershot/blob/2.2.0/src/Browsershot.php#L242-L248
- github.com/spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e94432516
- github.com/spatie/browsershot/pull/989
- github.com/spatie/browsershot/releases/tag/5.5.0
- www.vulncheck.com/advisories/spatie-browsershot-2.2.0-before-5.5.0-local-file-read-via-sethtml
Questions
Is CVE-2026-126779 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog as of 2026-11-12.
How do I fix CVE-2026-126779?
Follow the vendor advisory in the references below. NVD lists the affected versions under its configurations.
From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Received. The description is NVD's text, quoted as published.
Related
Know the day a CVE lands in your code
Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.