Command Injection Affecting @apostrophecms/cli package, versions <3.6.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.43% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-APOSTROPHECMSCLI-16770027
  • published20 May 2026
  • disclosed14 May 2026
  • creditNitro13urn

Introduced: 14 May 2026

CVE-2026-42853  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade @apostrophecms/cli to version 3.6.1 or higher.

Overview

@apostrophecms/cli is a Commandline generator and configurator for Apostrophe CMS

Affected versions of this package are vulnerable to Command Injection via the apos create command when user-supplied input from the password prompt is embedded directly into a shell command without proper sanitization or escaping. An attacker can execute arbitrary commands on the host system by supplying specially crafted input containing shell metacharacters.

CVSS Base Scores

version 4.0
version 3.1