Description
Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Prior to version 1.7.0, there is a SSRF and local file read vulnerability via the xsl-style-sheet option. This issue has been patched in version 1.7.0.
Published: 2026-06-10
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in Snappy, a PHP library that produces previews and PDFs from URLs or HTML content. The library accepts an xsl‑style‑sheet option that controls XML stylesheets. An attacker can supply an arbitrary URL or file path to this option. Because Snappy does not validate the input, the library will fetch the resource from the supplied location. This allows the attacker to read local files relative to the web root or host machine as well as issue arbitrary outbound HTTP or HTTPS connections within the network, exposing internal services. The weakness is a Server‑Side Request Forgery combined with Local File Inclusion (CWE‑918) and can lead to information disclosure and, in certain configurations, the execution of code on the server.

Affected Systems

The affected product is KnpLabs Snappy before version 1.7.0. The library is commonly used in PHP web applications to generate thumbnails, snapshots or PDFs from external URLs or HTML. Any deployment that relies on a snippet of code that calls Snappy with a user‑controlled xsl‑style‑sheet argument is vulnerable. Systems running Snappy 1.6.2 or earlier are at risk; the latest released version 1.7.0 contains the fix.

Risk and Exploitability

The CVSS score of 6.9 indicates a medium severity risk. No EPSS score is available, but the lack of public exploit chatter and the requirement for a valid vulnerable URL or file path mean that exploitation is plausible but not trivial. The vulnerability is not cataloged in the CISA KEV list, so there has been no documented exploitation of this specific issue yet. The most likely attack vector is through a web form or API endpoint that forwards user‑supplied activity to Snappy, allowing the attacker to inject a malicious xsl‑style‑sheet value. When the target system has outbound network access, the SSRF component can reach internal services hidden behind firewalls. Organizations should treat this as a moderate risk pending patch, especially if the library processes user‑controlled input.

Generated by OpenCVE AI on June 10, 2026 at 21:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Snappy to version 1.7.0 or higher to apply the official patch.
  • If upgrading is delayed, block or strip any user‑supplied value for the xsl‑style‑sheet option in the application code.
  • Restrict outbound traffic from the web application or isolate the Snappy process so that it has no access to the internal network, mitigating SSRF exposure.

Generated by OpenCVE AI on June 10, 2026 at 21:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-c5fp-p67m-gq56 Snappy : SSRF and local file read via the xsl-style-sheet option
History

Wed, 10 Jun 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Knplabs
Knplabs snappy
Vendors & Products Knplabs
Knplabs snappy

Wed, 10 Jun 2026 20:00:00 +0000

Type Values Removed Values Added
Description Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Prior to version 1.7.0, there is a SSRF and local file read vulnerability via the xsl-style-sheet option. This issue has been patched in version 1.7.0.
Title Snappy: SSRF and local file read via the xsl-style-sheet option
Weaknesses CWE-918
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:L/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-10T19:53:09.020Z

Reserved: 2026-05-15T21:46:51.548Z

Link: CVE-2026-46683

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-06-10T20:17:29.017

Modified: 2026-06-10T20:21:20.207

Link: CVE-2026-46683

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-10T21:30:36Z

Weaknesses