{"id":"CVE-2025-1022","aliases":["CLSA-2026-1768956702","CLSA-2026-1777509609","EUVD-2025-0240","GHSA-j2gw-r24m-j2qw"],"status":"published","title":"Browsershot Path Traversal","description":"Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation in the setHtml function, invoked by Browsershot::html(), which can be bypassed by omitting the slashes in the file URI (e.g., file:../../../../etc/passwd). This is due to missing validations of the user input that should be blocking file URI schemes (e.g., file:// and file:/) in the HTML content.\r\r**Note:** Further analysis has identified additional proof-of-concept exploits leveraging the vulnerable function. Developers using this package should ensure proper input validation to mitigate potential risks, as the issue remains unaddressed.","severity":{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00469,"percentile":0.41109,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20","CWE-22"],"published":"2025-02-05T05:00:15Z","modified":"2026-10-28T02:30:22Z","fixes":[{"ecosystem":"Packagist","package":"spatie/browsershot","fixed_in":["5.0.5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"spatie/browsershot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.5"}]}]},{"source":"osv","ecosystem":"TuxCare:Packagist","package":"spatie/browsershot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.61.0"},{"fixed":"3.61.0-p1+tuxcare"}]}],"versions":["3.61.0"],"bundled":5},{"source":"osv","ecosystem":"TuxCare:Packagist","package":"spatie/browsershot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.4.0"},{"fixed":"4.4.0-p2+tuxcare"}]}],"versions":["4.4.0","4.4.0-p1+tuxcare"],"bundled":5},{"source":"osv","ecosystem":"Packagist","package":"spatie/browsershot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.5"}]}],"versions":["0.1.0","0.1.1","0.1.2","0.1.3","1.0.0","1.1.0","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.3.0","1.4.0","1.5.0","1.5.1","1.5.2","1.5.3","1.5.4","1.6.0","1.7.0","1.8.0","1.9.0","1.9.1","2.0.0","2.0.1","2.0.2","2.0.3","2.1.0","2.2.0","2.3.0","2.4.0","2.4.1","2.4.2","3.0.0","3.1.0","3.10.0","3.11.0","3.11.1","3.12.0","3.13.0","3.14.0","3.14.1","3.15.0","3.16.0","3.16.1","3.17.0","3.18.0","3.19.0","3.2.0","3.2.1","3.20.0","3.20.1","3.22.0","3.22.1","3.23.0","3.23.1","3.24.0","3.25.0","3.25.1","3.26.0","3.26.1","3.26.2","3.26.3","3.27.0","3.29.0","3.3.0","3.3.1","3.30.0","3.31.0","3.31.1","3.32.0","3.32.1","3.32.2","3.33.0","3.33.1","3.34.0","3.35.0","3.36.0","3.37.0","3.37.1","3.37.2","3.38.0","3.39.0","3.4.0","3.40.0","3.40.1","3.40.2","3.40.3","3.41.0","3.41.1","3.41.2","3.42.0","3.44.0","3.44.1","3.45.0","3.46.0","3.47.0","3.48.0","3.49.0","3.5.0","3.50.0","3.50.1","3.50.2","3.51.0","3.52.0","3.52.1","3.52.2","3.52.3","3.52.4","3.52.5","3.52.6","3.53.0","3.54.0","3.55.0","3.56.0","3.57.0","3.57.1","3.57.2","3.57.3","3.57.4","3.57.5","3.57.6","3.57.7","3.57.8","3.58.0","3.58.1","3.58.2","3.59.0","3.6.0","3.60.0","3.60.1","3.60.2","3.61.0","3.7.0","3.8.0","3.8.1","3.9.0","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.1.0","4.1.1","4.1.2","4.1.3","4.2.0","4.2.1","4.3.0","4.3.1","4.4.0","5.0.0","5.0.1","5.0.2","5.0.3","5.0.4"]}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496747","tags":["web"]},{"url":"https://github.com/spatie/browsershot/commit/bcfd608b264fab654bf78e199bdfbb03e9323eb7","tags":["fix","web"]},{"url":"https://github.com/spatie/browsershot/commit/e3273974506865a24fbb5b65b534d8d4b8dfbf72","tags":["fix","web"]},{"url":"https://gist.github.com/mrdgef/a820837c530e09e1dd725e013e0d4341","tags":["exploit","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1022","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-j2gw-r24m-j2qw"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1022.json","tags":["advisory"]},{"url":"https://github.com/spatie/browsershot","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-1022","description":"Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation in the setHtml function, invoked by Browsershot::html(), which can be bypassed by omitting the slashes in the file URI (e.g., file:../../../../etc/passwd). This is due to missing validations of the user input that should be blocking file URI schemes (e.g., file:// and file:/) in the HTML content.\r\r**Note:** Further analysis has identified additional proof-of-concept exploits leveraging the vulnerable function. Developers using this package should ensure proper input validation to mitigate potential risks, as the issue remains unaddressed.","status":"published","published":"2025-02-05T05:00:15.399Z","modified":"2026-08-23T15:25:35.61Z","cvss":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","level":"high","assessor":"cna"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N/E:P","level":"high","assessor":"cna"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:32:49.503917Z"}],"euvd":[{"id":"EUVD-2025-0240","description":"Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation in the setHtml function, invoked by Browsershot::html(), which can be bypassed by omitting the slashes in the file URI (e.g., file:../../../../etc/passwd). This is due to missing validations of the user input that should be blocking file URI schemes (e.g., file:// and file:/) in the HTML content.\r\r**Note:** Further analysis has identified additional proof-of-concept exploits leveraging the vulnerable function. Developers using this package should ensure proper input validation to mitigate potential risks, as the issue remains unaddressed.","status":"published","published":"2025-02-05T05:00:15Z","modified":"2026-08-23T15:25:35Z","cvss":[{"version":"4.0","score":8.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","level":"high"}],"updated_at":"2026-11-02T18:01:35.768217Z"}],"ghsa":[{"id":"GHSA-j2gw-r24m-j2qw","title":"Browsershot Path Traversal","description":"Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation in the setHtml function, invoked by Browsershot::html(), which can be bypassed by omitting the slashes in the file URI (e.g., file:../../../../etc/passwd). This is due to missing validations of the user input that should be blocking file URI schemes (e.g., file:// and file:/) in the HTML content.","status":"published","published":"2025-02-05T06:30:26Z","modified":"2025-02-05T21:26:44Z","cvss":[{"version":"4.0","score":7.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/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":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high"}],"cwes":["CWE-20","CWE-22"],"updated_at":"2026-11-02T14:38:29.866763Z"}],"nvd":[{"id":"CVE-2025-1022","description":"Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation in the setHtml function, invoked by Browsershot::html(), which can be bypassed by omitting the slashes in the file URI (e.g., file:../../../../etc/passwd). This is due to missing validations of the user input that should be blocking file URI schemes (e.g., file:// and file:/) in the HTML content.\r\r**Note:** Further analysis has identified additional proof-of-concept exploits leveraging the vulnerable function. Developers using this package should ensure proper input validation to mitigate potential risks, as the issue remains unaddressed.","status":"published","published":"2025-02-05T05:15:10.337Z","modified":"2026-07-15T16:16:42.403Z","cvss":[{"version":"4.0","score":7.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/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":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:10:50.916773Z"}],"osv":[{"id":"CVE-2025-1022","description":"Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation in the setHtml function, invoked by Browsershot::html(), which can be bypassed by omitting the slashes in the file URI (e.g., file:../../../../etc/passwd). This is due to missing validations of the user input that should be blocking file URI schemes (e.g., file:// and file:/) in the HTML content.\r\r**Note:** Further analysis has identified additional proof-of-concept exploits leveraging the vulnerable function. Developers using this package should ensure proper input validation to mitigate potential risks, as the issue remains unaddressed.","status":"published","published":"2025-02-05T05:00:15.399Z","modified":"2026-10-28T02:30:22.330749191Z","cvss":[{"version":"4.0","score":7.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:44:45.712478Z"},{"id":"GHSA-j2gw-r24m-j2qw","title":"Browsershot Path Traversal","description":"Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation in the setHtml function, invoked by Browsershot::html(), which can be bypassed by omitting the slashes in the file URI (e.g., file:../../../../etc/passwd). This is due to missing validations of the user input that should be blocking file URI schemes (e.g., file:// and file:/) in the HTML content.","status":"published","published":"2025-02-05T06:30:26Z","modified":"2025-02-05T21:42:03.820916Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","level":"high"},{"version":"4.0","score":7.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/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"}],"cwes":["CWE-20","CWE-22"],"updated_at":"2026-11-02T15:46:49.621585Z"},{"id":"CLSA-2026-1768956702","title":"TuxCare security update for spatie/browsershot (5 CVEs)","description":"TuxCare rebuilt spatie/browsershot to address 5 CVEs. Fixed in 3.61.0-p1+tuxcare.","status":"published","published":"2026-08-04T14:52:35Z","modified":"2026-10-15T09:47:40.593639585Z","updated_at":"2026-11-02T15:43:42.847264Z"},{"id":"CLSA-2026-1777509609","title":"TuxCare security update for spatie/browsershot (5 CVEs)","description":"TuxCare rebuilt spatie/browsershot to address 5 CVEs. Fixed in 4.4.0-p2+tuxcare.","status":"published","published":"2026-08-04T14:52:29Z","modified":"2026-10-15T09:47:59.497806638Z","updated_at":"2026-11-02T15:43:44.384419Z"}]}}
