Input Validation Flaw in Browsershot Affects Spatie Software
CVE-2025-1022
8.8HIGH
What is CVE-2025-1022?
An improper input validation vulnerability exists in versions of the Browsershot package prior to 5.0.5. This flaw allows attackers to bypass security measures by omitting slashes in file URIs (e.g., file:../../../../etc/passwd) when invoking the setHtml function via Browsershot::html(). The vulnerability arises from insufficient validation of user inputs that should prevent file URI schemes such as file:// and file:/ from being processed in the HTML content, potentially enabling unauthorized access to sensitive files.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
spatie/browsershot 0 < 5.0.5
References
CVSS V4
Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Ee Yang Tee
