{"id":"CVE-2026-126779","summary":"Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()","details":"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.","modified":"2026-11-14T02:30:47.113659202Z","published":"2026-11-11T18:41:10.254Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-73"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126779.json"},"references":[{"type":"WEB","url":"https://packagist.org"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126779.json"},{"type":"ADVISORY","url":"https://github.com/spatie/browsershot/releases/tag/5.5.0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126779"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/spatie-browsershot-2.2.0-before-5.5.0-local-file-read-via-sethtml"},{"type":"FIX","url":"https://github.com/spatie/browsershot/commit/eba71ab7f4aba23d9321d653ccd19d4e94432516"},{"type":"FIX","url":"https://github.com/spatie/browsershot/pull/989"},{"type":"PACKAGE","url":"https://github.com/spatie/browsershot"},{"type":"ARTICLE","url":"https://github.com/spatie/browsershot/blob/2.2.0/src/Browsershot.php#L242-L248"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/spatie/browsershot","events":[{"introduced":"b859699eff6ec3cb8abeff538117c48b0791f49b"},{"fixed":"eba71ab7f4aba23d9321d653ccd19d4e94432516"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"2.2.0"},{"fixed":"5.5.0"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"eba71ab7f4aba23d9321d653ccd19d4e94432516"}]},{"source":"REFERENCES_TAG","original_tag":"5.5.0","range":[{"fixed":"eba71ab7f4aba23d9321d653ccd19d4e94432516"}]},{"range":[{"introduced":"2.2.0"},{"fixed":"5.5.0"}],"source":"DESCRIPTION"}]}}],"versions":["5.4.2","5.4.1","5.4.0","5.3.0","5.2.3","5.2.2","5.2.1","5.2.0","5.1.1","5.1.0","5.0.11","5.0.10","5.0.9","5.0.7","5.0.6","5.0.5","5.0.4","5.0.3","5.0.1","5.0.0","4.4.0","4.3.1","4.3.0","4.2.1","4.2.0","4.1.3","4.1.2","4.1.1","4.1.0","4.0.5","4.0.4","4.0.3","4.0.2","4.0.1","4.0.0","3.61.0","3.60.2","3.60.1","3.60.0","3.59.0","3.58.2","3.58.1","3.58.0","3.57.8","3.57.7","3.57.6","3.57.5","3.57.4","3.57.3","3.57.2","3.57.1","3.57.0","3.56.0","3.55.0","3.54.0","3.53.0","3.52.6","3.52.5","3.52.4","3.52.3","3.52.2","3.52.1","3.52.0","3.51.0","3.50.2","3.50.1","3.50.0","3.49.0","3.48.0","3.47.0","3.46.0","3.45.0","3.44.1","3.44.0","3.42.0","3.41.2","3.41.1","3.41.0","3.40.3","3.40.2","3.40.1","3.40.0","3.39.0","3.38.0","3.37.2","3.37.1","3.37.0","3.36.0","3.35.0","3.34.0","3.33.1","3.33.0","3.32.2","3.32.1","3.32.0","3.31.1","3.31.0","3.30.0","3.29.0","3.27.0","3.26.3","3.26.2","3.26.1","3.26.0","3.25.1","3.25.0","3.24.0","3.23.1","3.23.0","3.22.1","3.22.0","3.20.1","3.20.0","3.19.0","3.18.0","3.17.0","3.16.1","3.16.0","3.15.0","3.14.1","2.4.1","3.14.0","3.13.0","3.12.0","3.11.1","3.11.0","3.10.0","3.9.0","3.8.1","3.8.0","3.7.0","3.6.0","3.5.0","3.4.0","3.3.1","3.3.0","3.2.1","3.2.0","3.1.0","3.0.0","2.4.0","2.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-126779.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}