{"id":"CVE-2025-1022","aliases":["CVE-2025-1022","GHSA-j2gw-r24m-j2qw"],"related":[],"kind":"vulnerability","state":"published","title":"Browsershot Path Traversal","summary":"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.\n\n**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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\n**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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones del paquete spatie/browsershot anteriores a la 5.0.5 son vulnerables a la validación de entrada incorrecta en la función setHtml, invocada por Browsershot::html(), que se puede evitar omitiendo las barras en la URI del archivo (por ejemplo, file:../../../../etc/passwd). Esto se debe a la falta de validaciones de la entrada del usuario que deberían bloquear los esquemas de URI de archivo (por ejemplo, file:// y file:/) en el contenido HTML.","source":"nvd"}],"published":"2025-02-05T05:00:15.399Z","modified":"2026-08-23T15:25:35.610Z","severity":{"scorer":"snyk","scheme":"CVSS:4.0","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","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:4.0","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","score":8.8,"rating":"HIGH"},{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N/E:P","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"}],"cwes":["CWE-20","CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"5.0.5","status":"affected"}],"product":"spatie/browsershot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.0.5"}],"ecosystem":"Packagist","package":"spatie/browsershot","purl":"pkg:composer/spatie/browsershot","source":"ghsa"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496747","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spatie/browsershot/commit/bcfd608b264fab654bf78e199bdfbb03e9323eb7","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/spatie/browsershot/commit/e3273974506865a24fbb5b65b534d8d4b8dfbf72","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/mrdgef/a820837c530e09e1dd725e013e0d4341","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1022","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spatie/browsershot","tags":["package"],"sources":["ghsa"]}],"credits":["Ee Yang Tee"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-02-05T19:29:07.463Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-1022","url":"https://www.cve.org/CVERecord?id=CVE-2025-1022","licence":"CVE Terms of Use","modified":"2026-08-23T15:25:35.610Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j2gw-r24m-j2qw","url":"https://github.com/advisories/GHSA-j2gw-r24m-j2qw","licence":"CC-BY-4.0","modified":"2025-02-05T21:42:03.820Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-1022","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1022","licence":"Public domain","modified":"2026-07-15T16:16:42.403Z"}],"updatedAt":"2026-11-25T22:58:53.796Z","epss":{"score":0.00469,"percentile":0.42265,"date":"2026-12-01T12:00:22.000Z"}}