CVE-2025-1022 - CVE House
Back to Database
Status published High CVE-2025-1022

Versions of the package spatie/browsershot before 5.0.5 are vulnerable to...

Vulnerability 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. **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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-1022

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • Ee Yang Tee

Affected Vendor

Affected Software

spatie/browsershot
Vulnerable Versions:
0

Timeline

Official Publish: February 5th, 2025
Last Modified: July 15th, 2026
Added to House: July 22nd, 2026

CVSS Vectors

Weaknesses (CWE)