CVE-2024-21549

published 20 Dec 2024 · updated 15 Aug 2026

Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation in the…

8.6HighCVSS 8.6EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 5.0.3.

Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation in the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file. **Note:** This is a bypass of the fix for [CVE-2024-21544](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8496745).

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<5.0.35.0.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-21549 severity on Zeptric[![CVE-2024-21549](https://zeptric.io/badge/cve/CVE-2024-21549.svg)](https://zeptric.io/cve/CVE-2024-21549)