CVE-2025-3192: Spatie/browsershot Browsershot Server-Side Request Forgery (SSRF) Vulnerability
HIGHCVE-2025-3192 is a HIGH (CVSS 8.2) browsershot server-side request forgery (ssrf) vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Spatie/browsershot libraries in the Packagist ecosystem. The issue involves browsershot server-side request forgery (ssrf) via seturl() function. Remediation is available in the latest vendor maintenance releases.
CVE-2025-3192 at a Glance
Security Impact
CVSS: 8.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N).
How to Fix CVE-2025-3192
To remediate this vulnerability, upgrade all affected Spatie/browsershot dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade spatie/browsershot to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for spatie/browsershot
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-3192, inspect your project dependencies for Spatie/browsershot:
inspect dependencies for spatie/browsershot
Analyze the terminal output to locate any version of Spatie/browsershot in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Spatie/browsershot, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-3192 Affected Spatie/browsershot Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
spatie/browsershot
|
Packagist |
≤ 5.0.3
|
|
References
Frequently Asked Questions
What is CVE-2025-3192?
Which Spatie/browsershot versions are affected?
What version fixes CVE-2025-3192?
Is spatie/browsershot affected?
What is the CVSS score of CVE-2025-3192?
What CWE is associated with CVE-2025-3192?
How can I check Packagist dependencies for CVE-2025-3192?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qw64-6vcc-8ghx",
"modified" : "2025-04-04T17:12:01Z",
"published" : "2025-04-04T06:34:22Z",
"aliases" : [ "CVE-2025-3192" ],
"summary" : "Browsershot Server-Side Request Forgery (SSRF) via setURL() Function",
"details" : "Versions of the package spatie/browsershot from 0.0.0 to 5.0.3 are vulnerable to Server-side Request Forgery (SSRF) in the setUrl() function due to a missing restriction on user input, enabling attackers to access localhost and list all of its directories.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "spatie/browsershot"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "5.0.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3192"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/JunMing27/651998a34d57fbf71ff9d25386f1da0f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/spatie/browsershot"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8548015"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-04T17:12:01Z",
"nvd_published_at" : "2025-04-04T05:15:45Z"
}
}