What’s Vulnerable › Vulnerabilities

CVE-2024-21547

Description

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 products

How to fix

Upgrade to a fixed version: spatie/browsershot 5.0.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-21547 or the next vulnerability affects your stack