Vulnerability

CVE-2026-126779

highCVSS 4.0 8.7Published 11 Nov 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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 products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /spatie/browsershot/blob/2.2.0/src/Browsershot.php
  • github.com /spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e…
  • 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-fil…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning