CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

CVE-2024-21549: Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation through the...

8.7 CVSS

Description

Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation through 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).

Classification

CVE ID: CVE-2024-21549

CVSS Base Severity: HIGH

CVSS Base Score: 8.7

Affected Products

Vendor: n/a

Product: spatie/browsershot

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.05% (probability of being exploited)

EPSS Percentile: 17.81% (scored less or equal to compared to others)

EPSS Date: 2025-02-03 (when was this score calculated)

References

https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023
https://github.com/spatie/browsershot/discussions/906
https://github.com/spatie/browsershot/commit/f791ce0ae8dd99367dbfa30588ee31e1196e1728

Timeline