Prime CMS through 0.4.0-beta.0 OS Command Injection via updateSystem Mutation
- State
- Published
- Severity
- 8.6 High
- Published
- Nov 16, 2026
- Updated
- Nov 18, 2026
- Reserved
- Nov 16, 2026
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.
| Product | Versions |
|---|---|
| prime birkir | 0.4.0-beta.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.6 High | VulnCheck | |
| 3.1 | 7.2 High | VulnCheck |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- https://github.com/birkir/prime/issues/549Issue Tracker
- https://github.com/birkir/prime/blob/v0.3.4-beta.3/packages/prime-core/src/modules/internal/resolvers/PrimeResolver.ts#L110-L132Technical Details
- https://github.com/birkir/prime/blob/v0.3.4-beta.3/packages/prime-core/src/modules/internal/utils/updateNpmPackages.ts#L4-L15Technical Details
- VulnCheck Advisory: Prime CMS through 0.4.0-beta.0 OS Command Injection via updateSystem MutationThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.