IT SBIT Services
Schneeberger
DEEN
CVE tracker

easy-pdf-merge: OS command injection via merge function

CVE-2020-37279Critical 9.2

← All vulnerabilities

Summary

The Node.js module easy-pdf-merge versions 0.1.0 through 0.2.6 passes source paths, destination path and the maxHeap option to child_process.exec(), which runs them through a shell. An attacker who can influence file names or options can inject shell metacharacters and execute arbitrary commands with the privileges of the Node.js process. The risk applies only if an application passes untrusted input to the module; the package is no longer maintained and no fixed version is available.

Affected

  • easy-pdf-merge 0.1.0 through 0.2.6
  • Default configuration is not affected; the flaw is triggered by untrusted input in source paths, destination path or maxHeap option

Fixed in

Unknown. No fixed release is available; the npm registry lists 0.2.6 as the latest version.

Workaround

  • Do not pass user-supplied file names, paths or options to the module
  • Use fixed or generated file names and validate paths against an allowlist
  • Run the affected service with least privilege, in a container or sandbox, without access to secrets

Exploitation

  • CISA SSVC: exploitation status 'poc', automatable: no, technical impact: total
  • Not listed as known exploited; no exploitation in the wild found
  • A proof of concept existed in 2020 (referenced in PR #28)
  • EPSS 0.01497

Our recommendation

  • Identify applications that depend on easy-pdf-merge, for example with 'npm ls easy-pdf-merge'
  • Replace the package with a maintained PDF library, or remove it if no longer needed
  • Until replaced, do not let untrusted users influence file names, paths or options
  • Monitor the affected application for unexpected child processes

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 31 Oct 2026, 04:41.

Original description (NVD)

easy-pdf-merge 0.1.0 through 0.2.6 contains an OS command injection vulnerability that allows attackers to execute commands by injecting shell metacharacters into source paths, destination path, or maxHeap option. Attackers can supply file names or options containing double quotes, semicolons, $() or backticks, which child_process.exec() runs through a shell with the Node.js process privileges.

NVD references (6)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.