### [CVE-2024-21544](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21544) ![](https://img.shields.io/static/v1?label=Product&message=spatie%2Fbrowsershot&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=0%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=Improper%20Input%20Validation&color=brightgreen) ### Description 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. ### POC #### Reference - https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745 #### Github No PoCs found on GitHub currently.