{"id":"CVE-2026-126779","aliases":["EUVD-2026-123773","GHSA-wp7g-f22j-79fp"],"status":"published","title":"Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()","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.","severity":{"version":"4.0","score":8.7,"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00381,"percentile":0.32627,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-73"],"published":"2026-11-11T18:41:10Z","modified":"2026-11-12T10:45:33Z","products":[{"vendor":"spatie","product":"browsershot"}],"references":[{"url":"https://github.com/spatie/browsershot/pull/989","tags":["patch","issue-tracking","fix"]},{"url":"https://github.com/spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e94432516","tags":["patch","fix"]},{"url":"https://github.com/spatie/browsershot/releases/tag/5.5.0","tags":["release-notes","advisory"]},{"url":"https://github.com/spatie/browsershot/blob/2.2.0/src/Browsershot.php#L242-L248","tags":["technical-description","article"]},{"url":"https://www.vulncheck.com/advisories/spatie-browsershot-2.2.0-before-5.5.0-local-file-read-via-sethtml","tags":["third-party-advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126779","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wp7g-f22j-79fp"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126779.json","tags":["advisory"]},{"url":"https://github.com/spatie/browsershot","tags":["package"]},{"url":"https://packagist.org","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2026-126779","title":"Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()","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.","status":"published","published":"2026-11-11T18:41:10.254Z","modified":"2026-11-11T18:41:10.254Z","cvss":[{"version":"4.0","score":8.7,"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","level":"high","assessor":"cna"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-73"],"updated_at":"2026-11-11T19:31:49.923897Z"}],"euvd":[{"id":"EUVD-2026-123773","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.","status":"published","published":"2026-11-11T18:41:10Z","modified":"2026-11-11T18:41:10Z","cvss":[{"version":"4.0","score":8.7,"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","level":"high"}],"updated_at":"2026-11-11T23:30:57.784734Z"}],"ghsa":[{"id":"GHSA-wp7g-f22j-79fp","title":"Spatie Browsershot 2.2.0 before 5.5.0 contains a local file read vulnerability that allows...","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.","status":"published","published":"2026-11-11T21:32:57Z","modified":"2026-11-11T21:33:08Z","cvss":[{"version":"4.0","score":8.7,"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/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","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-73"],"updated_at":"2026-11-11T21:36:27.876473Z"}],"nvd":[{"id":"CVE-2026-126779","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.","status":"published","published":"2026-11-11T19:17:38.84Z","modified":"2026-11-12T20:28:31.817Z","cvss":[{"version":"4.0","score":8.7,"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/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","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"}],"cwes":["CWE-73"],"updated_at":"2026-11-11T21:26:20.111639Z"}],"osv":[{"id":"CVE-2026-126779","title":"Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()","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.","status":"published","published":"2026-11-11T18:41:10.254Z","modified":"2026-11-12T10:45:33.103263299Z","cvss":[{"version":"4.0","score":8.7,"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","level":"high"}],"cwes":["CWE-73"],"updated_at":"2026-11-12T11:17:24.122775Z"}]}}
