Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. knplabs/knp-snappy
  4. ›
  5. CVE-2026-46683

CVE-2026-46683: Snappy : SSRF and local file read via the xsl-style-sheet option

May 21, 2026 (updated June 11, 2026)

It impacts applications where:

  • the PHP daemon run with root permissions ;
  • the application is either running outside a container or has sensitive file access ;

It could happens with this kind of workflows:

$stylesheet = $_GET['stylesheet']; // = ‘file:///etc/passwd’
$pdf = new Knp\Snappy\Pdf(‘/usr/local/bin/wkhtmltopdf’);
$pdf->generate(‘page.html’, ‘out.pdf’, [
‘xsl-style-sheet’ => $stylesheet
]);

References

  • github.com/KnpLabs/snappy/releases/tag/v1.7.0
  • github.com/KnpLabs/snappy/security/advisories/GHSA-c5fp-p67m-gq56
  • github.com/advisories/GHSA-c5fp-p67m-gq56
  • nvd.nist.gov/vuln/detail/CVE-2026-46683

Code Behaviors & Features

Detect and mitigate CVE-2026-46683 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.7.0

Fixed versions

  • 1.7.0

Solution

Upgrade to version 1.7.0 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

packagist/knplabs/knp-snappy/CVE-2026-46683.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:54 +0000.