# CVE-2026-126779: Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-11-11T18:41:10.254Z
- Modified: 2026-11-13T18:17:33.443Z
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- spatie browsershot: from 2.2.0 before 5.5.0 (not affected: 5.5.0)

## Every score

- VulnCheck: CVSS:4.0 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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/spatie/browsershot/pull/989> (issue-tracking, patch)
- <https://github.com/spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e94432516> (patch)
- <https://github.com/spatie/browsershot/releases/tag/5.5.0> (release-notes)
- <https://github.com/spatie/browsershot/blob/2.2.0/src/Browsershot.php#L242-L248> (technical-description)
- <https://www.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](https://www.cve.org/CVERecord?id=CVE-2026-126779), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-126779](https://nvd.nist.gov/vuln/detail/CVE-2026-126779), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-126779 · Whole record: https://cve.day/CVE-2026-126779.json · Rebuilt by cve.day 2026-11-25T22:59:50.406Z
