ADVISORIES

GitHub Advisory Database

GHSA-v528-6rq9-h6gw

Spatie Browsershot Directory Traversal vulnerability

Details

Versions of the package spatie/browsershot before 5.0.2 are vulnerable to Directory Traversal due to URI normalisation in the browser where the file:// check can be bypassed with file:\\. An attacker could read any file on the server by exploiting the normalization of \ into /.

Affected packages

EcosystemPackageAffected versions
Packagistspatie/browsershot
All versions before 5.0.2 (fixed in 5.0.2)

References