
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (CVE-2025-1026) affects the spatie/browsershot package versions before 5.0.5, discovered in February 2025. This security flaw stems from improper input validation in the setUrl method, which can lead to Local File Inclusion (LFI) attacks. The vulnerability represents a bypass of a previous fix for CVE-2024-21549 and allows unauthenticated attackers to read sensitive files on the server (TheSecMaster, Snyk).
The vulnerability exists due to inadequate URL validation within the setUrl method of the spatie/browsershot package. The flaw allows attackers to bypass the file URI scheme validation by omitting the slashes in file:// or using URL encoding techniques. The vulnerability has been assigned a CVSS 3.1 score of 7.7 (High) with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N (TheSecMaster).
The vulnerability's primary impact is on confidentiality, allowing attackers to perform Local File Inclusion (LFI) attacks and potentially read sensitive files on the server, including configuration files, source code, database credentials, and other critical information. While the vulnerability does not affect integrity or availability, the exposed information could be leveraged for further attacks such as privilege escalation (TheSecMaster).
The vulnerability can be exploited remotely by an unauthenticated attacker. A proof-of-concept exists demonstrating how attackers can bypass the URL validation by manipulating the file URI scheme. The exploit requires no special conditions or user interaction, making it relatively straightforward to execute (GitHub Gist, Snyk).
The primary mitigation is to upgrade the spatie/browsershot package to version 5.0.5 or later, which includes a fix for this vulnerability. The fix implements additional URL validation using PHP's filter_var() function with FILTER_VALIDATE_URL flag. For systems that cannot immediately update, it's recommended to implement strict input validation for URLs and ensure the application runs with minimal necessary privileges (GitHub Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."