Intel

AIKIDO-2026-894369

beganovich/snappdf is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

CVE-2026-110646Published Oct 30, 2026
October 30, 2026

75

CVE Score

High

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Are you affected? Scan for Free

TL;DR

The Snappdf::generate() method builds a Chromium command line array that includes the URL or HTML from setUrl() or setHtml(). On Windows, generate() passes that array to executeOnWindows(), which joins it with implode(' ', $commands) and passes the string to PHP exec(), so shell metacharacters in the URL (such as &) run as commands in cmd.exe. On other platforms the same array goes to Symfony Process, which runs each value as its own argument. The fix drops the Windows branch and executeOnWindows(), so every platform uses new Process($commandInput) and the arguments are escaped.

How do I fix this?

Upgrade the beganovich/snappdf library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and are running the library's PDF generation on a Windows host.

Versions

1.1.0 - 6.0.0

Fixed in 6.1.0

Background info

beganovich/snappdf is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in versions 1.1.0 - 6.0.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea