spatie/browsershot CVE-2025-3192
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify browsershot URL input
-
DeliveryCraft SSRF payload targeting internal resource
-
ExploitSubmit malicious URL via vulnerable parameter
-
ExecutionChromium fetches internal endpoint
-
ImpactExtract sensitive data from response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the vulnerable application passes attacker-controlled or attacker-influenced input to the spatie/browsershot setUrl() function. Applications that only use hardcoded URLs or admin-configured URLs (where admin authentication is required) are not exploitable via external attackers. The server running browsershot must have network access to the internal resources being targeted (localhost services, cloud metadata endpoints, internal networks) - if browsershot runs in a fully isolated sandbox with no internal network connectivity, impact is limited to scanning the sandbox itself. No authentication is required at the vulnerability level (PR:N), but application-level authentication may gate access to the vulnerable feature. No user interaction is needed (UI:N). The attack succeeds from the network (AV:N) with low complexity (AC:L), making it exploitable wherever user input reaches setUrl() without validation. |
| Impact | While the CVSS 4.0 score of 7.8 indicates high severity with network attack vector (AV:N), low complexity (AC:L), and no prerequisites (PR:N, UI:N), the real-world exploitation risk is more nuanced. EPSS probability of 0.29% (53rd percentile) suggests this is not currently being mass-exploited or widely scanned, despite public POC availability. The vulnerability is not in CISA KEV, indicating no confirmed active exploitation campaigns. However, the 'all versions from 0.0.0' scope means every deployment is potentially vulnerable, making this a significant supply chain concern for PHP ecosystems. The primary impact is confidentiality (VC:H) - attackers gain unauthorized access to internal services, cloud metadata endpoints (AWS IMDSv1, GCP metadata), and can enumerate internal network topology. The integrity impact is rated low (VI:L), likely because attackers can only read responses, not directly modify backend systems, though chained with other vulnerabilities this could escalate. SSVC decision priority depends heavily on whether the application exposes setUrl() to untrusted input - if user-supplied URLs flow to browsershot, this becomes critical; if URLs are hardcoded or admin-controlled, risk is significantly lower. The lack of vendor advisory or confirmed patch version as of this analysis creates uncertainty around remediation timeline. |
| Exploit ScenarioDerived | An attacker identifies a web application feature that generates PDF reports or screenshots using spatie/browsershot where the target URL is derived from user input (e.g., a 'Convert URL to PDF' feature). The attacker crafts a request substituting the URL parameter with http://127.0.0.1:6379/ to probe for internal Redis instances, http://169.254.169.254/latest/meta-data/ to access AWS instance metadata and extract IAM credentials, or http://localhost:8080/admin to enumerate internal admin panels. The browsershot library fetches these internal resources via Chromium and returns responses or directory listings to the attacker, exposing sensitive configuration data, cloud credentials, or internal service inventory. With cloud metadata access, the attacker can pivot to full infrastructure compromise. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 29, 2026
Server-Side Request Forgery in spatie/browsershot enables remote attackers to probe internal network infrastructure and enumerate localhost directories via the setUrl() function. All versions from 0.0.0 onwards are affected, creating broad exposure for PHP applications using this Puppeteer wrapper library. EPSS score of 0.29% (53rd percentile) suggests low automated scanning activity currently, and publicly available exploit code exists demonstrating the vulnerability.
Earlier versions of this analysis (1)
Versions of the package spatie/browsershot from 0.0.0 are vulnerable to Server-side Request Forgery (SSRF) in the setUrl() function due to a missing restriction on user input, enabling attackers to. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. No vendor patch available.
RemediationAI
No vendor-released patch version has been independently confirmed at time of analysis. The Snyk advisory (https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8548015) should be monitored for patch availability. Until an official fix is released, implement strict input validation before passing URLs to setUrl(): create an allowlist of permitted domains and schemes (only https:// for external sites), reject all private IP ranges (127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16), block localhost and link-local addresses, and deny file://, gopher://, and other dangerous protocols. Consider wrapping browsershot calls in a validation layer that parses URLs with parse_url() and enforces domain restrictions. For high-security environments, run browsershot in an isolated network segment with egress filtering that blocks internal network access, though this adds infrastructure complexity and may break legitimate external URL fetching. If the application only needs to screenshot a fixed set of pages, eliminate user input entirely by hardcoding permitted URLs. Note that URL validation is complex (unicode bypasses, DNS rebinding, TOCTOU races) so defense-in-depth with network segmentation is recommended even with input filtering.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
spatie/browsershot is a PHP package that provides a convenient wrapper around Google Puppeteer/Chromium to convert web pages to images or PDFs. The vulnerability resides in the setUrl() function which accepts arbitrary URLs without validating or restricting the destination. This is a classic CWE-918 Server-Side Request Forgery flaw where user-controlled input flows directly into a network request operation. The underlying Chromium instance, running server-side, acts as a proxy to fetch attacker-specified URLs, including internal addresses (localhost, 127.0.0.1, RFC1918 ranges) that should be inaccessible from the internet. The package's design assumes developers will sanitize URLs before passing to setUrl(), but the library itself provides no built-in SSRF defenses such as allowlists, protocol restrictions, or private IP blocking.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionCVE.org
Versions of the package spatie/browsershot from 0.0.0 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.
Executive ViewAI
CVE-2025-3192 is a server-side request forgery vulnerability in spatie/browsershot that allows unauthenticated remote attackers to probe internal network infrastructure and enumerate localhost directories, affecting all versions of this widely-used PHP library. Organizations using browsershot in production face potential exposure of internal services, IP ranges, and sensitive network topology to external threat actors. This vulnerability poses immediate reconnaissance risk to any PHP application accepting user-controlled URL inputs.
No vendor-released patch identified at time of analysis. Implement strict input validation on all setUrl() calls using domain whitelisting; enforce firewall rules blocking browsershot process access to internal RFC 1918 networks and localhost; use network segmentation and egress filtering to prevent internal reconnaissance; monitor outbound connections from browsershot processes for suspicious activity.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
NVD
CVE.org
EPSS
GitHub
Exploit-DB