Skip to main content
EPSS 0.6%top 54%

CVE-2024-21544: Improper Input Validation in spatie/browsershot

0
High
VulnerabilityCVE-2024-21544cvecve-2024-21544gcve
Published: 12/13/2024 (12/13/2024, 05:00:14 UTC)
Source: CVE Database V5
Product: spatie/browsershot

Description

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

CVSS v4.0

Score 7.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:P

Affected software

Affected versions
=0<5.0.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/15/2026, 14:19:17 UTC

Technical Analysis

The vulnerability in spatie/browsershot (CVE-2024-21544) arises from improper URL validation in the setUrl method. Versions prior to 5.0.1 do not correctly handle leading whitespace characters before the file:// protocol, enabling an attacker to trigger Local File Inclusion (LFI). This LFI can be exploited to read sensitive server files, potentially exposing confidential information. The CVSS 4.0 score is 7.7 (high severity), reflecting network attack vector, no privileges or user interaction required, and high scope impact.

Potential Impact

Successful exploitation allows an unauthenticated attacker to read arbitrary files on the server by bypassing URL validation, potentially exposing sensitive data. This can compromise confidentiality but does not require privileges or user interaction.

Mitigation Recommendations

Upgrade to spatie/browsershot version 5.0.1 or later, where this improper input validation vulnerability is fixed. No other mitigations are indicated. Patch status is confirmed by the version boundary (<5.0.1) and the advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
snyk
Date Reserved
2023-12-22T12:33:20.124Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 68e0f3c1b66c7f7acdd3e957

Added to database: 10/04/2025, 10:15:29 UTC

Last enriched: 08/15/2026, 14:19:17 UTC

Last updated: 09/10/2026, 19:36:47 UTC

Views: 105

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses