spatie/browsershot: is it safe?

Short answer: Version 5.0.5 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Composer spatie/browsershot has 10 known advisories in the phpwarden feed. Feed 2026.11.23.2, updated 2026-11-23.

10advisories
0critical
0on CISA KEV
1no fix recorded
CVETitleSeverityCVSSAffectedFixed in
CVE-2020-7790browsershot local file inclusion vulnerabilitymedium5.3<3.40.13.40.1
CVE-2024-21547Spatie Browsershot Directory Traversal vulnerabilityhigh7.5<5.0.25.0.2
CVE-2022-43983Browsershot vulnerable to Cross-Site Scripting (XSS)medium6.1<3.57.33.57.3
CVE-2022-43984Browsershot version 3.57.3 vulnerable to improper input validationmedium6.1<3.57.43.57.4
CVE-2022-41706Browsershot does not validate URL protocols passed to Browsershot URL methodhigh8.2<3.57.33.57.3
CVE-2024-21549Browsershot Improper Input Validation vulnerabilityhigh8.6<5.0.35.0.3
CVE-2024-21544Browsershot Local File Inclusionhigh8.6<5.0.15.0.1
CVE-2025-1026Browsershot Local File Inclusionhigh8.6<5.0.55.0.5
CVE-2025-1022Browsershot Path Traversalhigh8.2<5.0.55.0.5
CVE-2025-3192Browsershot Server-Side Request Forgery (SSRF) via setURL() Functionhigh8.2<=5.0.3–

Quick answers

Is spatie/browsershot safe to use?

Version 5.0.5 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Is spatie/browsershot being actively exploited?

None of its 10 known vulnerabilities are on CISA's Known Exploited Vulnerabilities list today.

How do I check my own site?

Run `phpwarden deps composer.lock`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/spatie/browsershot.svg)](https://phpwarden.io/packages/spatie/browsershot)