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

Medium 6.9 Published Updated

Attackers can exploit the xsl-style-sheet option to perform Server-Side Request Forgery and read local files in Snappy.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-46683?

CVE-2026-46683 is a medium-severity server-side request forgery vulnerability in KnpLabs snappy, published on 10 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-918

Which versions are affected by CVE-2026-46683?

2 open source packages ship an affected version, including knplabs/knp-snappy.

PackageAffectedFixed in
knplabs/knp-snappy PackagistAll versions1.7.0
knplabs/knp-snappy PackagistAll versions1.7.0

How do I fix CVE-2026-46683?

Upgrade knplabs/knp-snappy to 1.7.0 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-46683 being exploited?

There is no known exploitation of CVE-2026-46683 in the wild and no public exploit code.

Sources

Also known as GHSA-c5fp-p67m-gq56.

Is CVE-2026-46683 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free