Browsershot Path Traversal
High severity
GitHub Reviewed
Published
Feb 5, 2025
to the GitHub Advisory Database
•
Updated Feb 5, 2025
Description
Published by the National Vulnerability Database
Feb 5, 2025
Published to the GitHub Advisory Database
Feb 5, 2025
Reviewed
Feb 5, 2025
Last updated
Feb 5, 2025
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.
References