Read the docs
TI-2024-14299 Aliases CVE-2024-21544GHSA-g2r4-phv7-5fgv

Improper input validation in spatie/browsershot

Priority MEDIUM 40CWE-20Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00572 47th percentileScored 2026-11-07
Fix Fixed spatie/browsershot: 5.0.1spatie/browsershot (Packagist): 5.0.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—spatie/browsershotbefore 5.0.15.0.1Patch availableCNA
—spatie/browsershot (Packagist)before 5.0.15.0.1Patch availableGHSA-g2r4-phv7-5fgv
  • spatie/browsershot Vendor— Affected before 5.0.1 Fixed in 5.0.1 Patch available CNA
  • spatie/browsershot (Packagist) Vendor— Affected before 5.0.1 Fixed in 5.0.1 Patch available GHSA-g2r4-phv7-5fgv

Remediation

  • Fix · CNA spatie/browsershot Fixed in 5.0.1
  • Fix · GHSA-g2r4-phv7-5fgv spatie/browsershot (Packagist) Fixed in 5.0.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-21544
  2. 2026-10-03 Alias added: GHSA-g2r4-phv7-5fgv

References

Sources