{"id":"CVE-2025-1022","aliases":["GHSA-j2gw-r24m-j2qw"],"url":"https://o3.security/vulnerability/CVE-2025-1022","summary":"Browsershot Path Traversal","details":"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.","published":"2025-02-05T05:00:15.399Z","modified":"2026-08-24T03:31:23.784912047Z","cvss":null,"epss":{"score":0.00463,"percentile":0.38797,"asOf":"2026-09-11"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"spatie/browsershot","fixedVersion":"5.0.5"}],"fix":{"url":"https://github.com/spatie/browsershot/commit/bcfd608b264fab654bf78e199bdfbb03e9323eb7","label":"spatie/browsershot@bcfd608"},"references":[{"type":"WEB","url":"https://gist.github.com/mrdgef/a820837c530e09e1dd725e013e0d4341"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496747"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1022.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1022"},{"type":"FIX","url":"https://github.com/spatie/browsershot/commit/bcfd608b264fab654bf78e199bdfbb03e9323eb7"},{"type":"FIX","url":"https://github.com/spatie/browsershot/commit/e3273974506865a24fbb5b65b534d8d4b8dfbf72"},{"type":"PACKAGE","url":"https://github.com/spatie/browsershot"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-24T03:31:23.784912047Z"}}