Skip to main content

spatie/browsershot CVE-2025-3192

HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2025-04-04 report@snyk.io
7.8
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify browsershot URL input
  2. Delivery
    Craft SSRF payload targeting internal resource
  3. Exploit
    Submit malicious URL via vulnerable parameter
  4. Execution
    Chromium fetches internal endpoint
  5. Impact
    Extract 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Mar 28, 2026 - 18:35 CVSS 8.8

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

composer spatie/browsershot no fix

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

NVD PRIMARY 7.8 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Apr 29, 2026 - 01:19 vuln.today
v2 - CVSS changed
CVSS changed
Apr 29, 2026 - 01:11 NVD
8.8 (HIGH) 7.8 (HIGH)
CVE Published
Apr 04, 2025 - 05:15 nvd
HIGH 8.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 47% exploitable
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy