Read the docs
TI-2025-00864 Aliases CVE-2025-1022GHSA-j2gw-r24m-j2qw

Improper input validation in spatie/browsershot

Priority HIGH 77CWE-20Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
High · Low · 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.5 are vulnerable to Improper Input Validation in the setHtml function, invoked by Browsershot::html(), which can be bypassed by omitting the slashes in the file URI (e.g., file:../../../../etc/passwd). This is due to missing validations of the user input that should be blocking file URI schemes (e.g., file:// and file:/) in the HTML content. **Note:** Further analysis has identified additional proof-of-concept exploits leveraging the vulnerable function. Developers using this package should ensure proper input validation to mitigate potential risks, as the issue remains unaddressed.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00463 40th percentileScored 2026-11-07
Fix Fixed spatie/browsershot: 5.0.5spatie/browsershot (Packagist): 5.0.5

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
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.55.0.5Patch availableCNA
—spatie/browsershot (Packagist)before 5.0.55.0.5Patch availableGHSA-j2gw-r24m-j2qw
  • spatie/browsershot Vendor— Affected before 5.0.5 Fixed in 5.0.5 Patch available CNA
  • spatie/browsershot (Packagist) Vendor— Affected before 5.0.5 Fixed in 5.0.5 Patch available GHSA-j2gw-r24m-j2qw

Remediation

  • Fix · CNA spatie/browsershot Fixed in 5.0.5
  • Fix · GHSA-j2gw-r24m-j2qw spatie/browsershot (Packagist) Fixed in 5.0.5 Advisory →

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    spatie/browsershot 5.0.5

    2 records Highest priority Priority HIGH 2 HIGH

    Other records, highest priority first

    • TI-2025-00868 Improper input validation in spatie/browsershotPriority HIGH 75

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-1022
  2. 2026-10-03 Alias added: GHSA-j2gw-r24m-j2qw

References

Sources