CVE-2026-129943: Prime CMS through 0.4.0-beta.0 OS Command Injection via updateSystem Mutation
Prime CMS (@primecms/core) through 0.4.0-beta.0 contains an OS command injection vulnerability in the updateSystem GraphQL mutation that allows authenticated administrators to execute shell commands via the package version string. Attackers can append shell metacharacters to the unvalidated version value, which is passed to childprocess.exec() in yarn add or npm install commands, executing commands as the server process.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated Prime CMS administrator is required. The attacker also needs access to invoke the updateSystem GraphQL mutation and control the package version string.
What level of access could successful exploitation provide?
Injected shell commands run as the Prime CMS server process. This can expose, modify, or disrupt resources accessible to that process.
Are deployments affected by a particular package-management setup?
The vulnerable update path constructs commands using either yarn add or npm install. The provided information does not limit impact to only one of those package managers.
How can I determine whether an installation is affected?
Installations using @primecms/core through 0.4.0-beta.0 should be considered affected if administrators can use the updateSystem mutation. Review whether the mutation passes a supplied version value into package-install commands executed through child_process.exec().