{"affected":[{"defaultStatus":"unaffected","ecosystem":"composer","packageName":"spatie/browsershot","product":"browsershot","source":"CNA: VulnCheck","vendor":"spatie","versions":[{"lessThan":"5.5.0","status":"affected","version":"2.2.0","versionType":"semver"},{"status":"unaffected","version":"5.5.0","versionType":"semver"}]}],"cveId":"CVE-2026-126779","cwes":["CWE-73"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":8.7,"severity":"high","source":"CNA: VulnCheck","vector":"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","version":"4.0"},{"score":7.5,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}],"modifiedAt":1794422470254,"publishedAt":1794422470254,"references":[{"source":"CNA: VulnCheck","tags":["patch","issue-tracking"],"url":"https://github.com/spatie/browsershot/pull/989"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e94432516"},{"source":"CNA: VulnCheck","tags":["release-notes"],"url":"https://github.com/spatie/browsershot/releases/tag/5.5.0"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/spatie/browsershot/blob/2.2.0/src/Browsershot.php#L242-L248"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/spatie-browsershot-2.2.0-before-5.5.0-local-file-read-via-sethtml"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/spatie/browsershot/pull/989"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e94432516"}],"revision":"c6e485c59cb722b46606adad85e23b8b470031af5651a6be6c3908d1d56ac191","sources":[{"modifiedAt":1794422470254,"name":"CNA: VulnCheck","retrievedAt":1794424138163,"url":"https://www.cve.org/CVERecord?id=CVE-2026-126779"}],"ssvc":null,"status":"published","title":"Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()","updatedAt":1794424138163}