Prime CMS command execution in updateSystem GraphQL mutation
birkir prime
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| birkir prime |
| No fix yet |
Original description
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 child_process.exec() in yarn add or npm install commands, executing commands as the server process.
From the CVE record · VulnCheck
References
- github.com/birkir/prime/issues/549
- github.com/birkir/prime/blob/v0.3.4-beta.3/packages/prime-core/src/modules/internal/resolvers/PrimeResolver.ts#L110-L132
- github.com/birkir/prime/blob/v0.3.4-beta.3/packages/prime-core/src/modules/internal/utils/updateNpmPackages.ts#L4-L15
- vulncheck.com/advisories/prime-cms-through-0.4.0-beta.0-os-command-injection-via-updatesystem-mutation
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129943.json
- nvd.nist.gov/vuln/detail/CVE-2026-129943
- github.com/birkir/prime