Advisory

GHSA-j2gw-r24m-j2qw

Also known as: CVE-2025-1022

Summary

Browsershot Path Traversal

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-02-05 06:30 UTC
Modified
2025-02-05 21:42 UTC

Affected packages and fixes

spatie/browsershot

Packagist · All systems

Affected

  • introduced 0, fixed 5.0.5 (ecosystem)

Fixed versions

5.0.5

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences