Packagist (PHP)Worst: High10 advisories

spatie/browsershot: known vulnerabilities

spatie/browsershot has 10 reviewed security advisories in the GitHub Advisory Database — 4 high, 6 moderate. The most recent was published 2025-04-04. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the spatie/browsershot versions running across your servers, containers and images, and ranks what to patch first.

How to fix spatie/browsershot

Upgrade spatie/browsershot to a release at or above the fixed version shown for each advisory below. For Packagist (PHP):

composer require spatie/browsershot:^5.0.5 (composer audit)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (10)

Browsershot Server-Side Request Forgery (SSRF) via setURL() Function High 8.2 CWE-918 — Affected: up to and including 5.0.3. No fixed release is listed. Published 2025-04-04. GHSA-qw64-6vcc-8ghx · CVE-2025-3192
Browsershot Local File Inclusion Moderate 8.6 CWE-20 CWE-22 — Affected: before 5.0.5. Fixed in 5.0.5. Published 2025-02-05. GHSA-f2q5-6mx7-q9qq · CVE-2025-1026
Browsershot Improper Input Validation vulnerability Moderate 8.6 CWE-125 CWE-20 CWE-200 — Affected: before 5.0.3. Fixed in 5.0.3. Published 2024-12-20. GHSA-c9f5-29f6-c35w · CVE-2024-21549
Spatie Browsershot Directory Traversal vulnerability High 7.5 CWE-22 — Affected: before 5.0.2. Fixed in 5.0.2. Published 2024-12-18. GHSA-v528-6rq9-h6gw · CVE-2024-21547
Browsershot version 3.57.3 vulnerable to improper input validation Moderate 6.1 CWE-20 CWE-79 — Affected: before 3.57.4. Fixed in 3.57.4. Published 2022-11-25. GHSA-6q49-35h6-rq2p · CVE-2022-43984
Browsershot vulnerable to Cross-Site Scripting (XSS) Moderate 6.1 CWE-79 — Affected: before 3.57.3. Fixed in 3.57.3. Published 2022-11-25. GHSA-82h9-v8vh-mfpq · CVE-2022-43983
Browsershot does not validate URL protocols passed to Browsershot URL method High 8.2 CWE-20 CWE-79 — Affected: before 3.57.3. Fixed in 3.57.3. Published 2022-11-25. GHSA-8c2c-jxwj-jqgf · CVE-2022-41706
browsershot local file inclusion vulnerability Moderate 5.3 CWE-22 — Affected: before 3.40.1. Fixed in 3.40.1. Published 2020-12-11. GHSA-rv74-mh27-4jpv · CVE-2020-7790

Find spatie/browsershot across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.