Loading HuntDB...

GHSA-g2r4-phv7-5fgv

GitHub Security Advisory

Browsershot Local File Inclusion

✓ GitHub Reviewed MODERATE Has CVE

Advisory Details

Versions of the package spatie/browsershot before 5.0.1 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method.
An attacker can exploit this vulnerability by using leading whitespace (%20) before the file:// protocol, resulting in Local File Inclusion, which allows the attacker to read sensitive files on the server.

Affected Packages

Packagist spatie/browsershot
Affected versions: 0 (fixed in 5.0.1)

Related CVEs

Key Information

GHSA ID
GHSA-g2r4-phv7-5fgv
Published
December 13, 2024 6:30 AM
Last Modified
February 4, 2025 5:25 PM
CVSS Score
5.0 /10
Primary Ecosystem
Packagist
Primary Package
spatie/browsershot
GitHub Reviewed
✓ Yes

Dataset

Last updated: June 13, 2025 6:24 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.