High severity8.2OSV Advisory· Published Feb 5, 2025· Updated Jun 17, 2026
CVE-2025-1022
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
spatie/browsershotPackagist | < 5.0.5 | 5.0.5 |
Affected products
2- Range: 0.1.0, 0.1.1, 0.1.2, …
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-j2gw-r24m-j2qwghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-1022ghsaADVISORY
- gist.github.com/mrdgef/a820837c530e09e1dd725e013e0d4341nvdWEB
- github.com/spatie/browsershot/commit/bcfd608b264fab654bf78e199bdfbb03e9323eb7nvdWEB
- github.com/spatie/browsershot/commit/e3273974506865a24fbb5b65b534d8d4b8dfbf72nvdWEB
- security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496747nvdWEB
News mentions
0No linked articles in our index yet.