---
id: "CVE-2026-129943"
page: "https://infrastack.ai/live/CVE-2026-129943"
kind: "vulnerability"
aliases: ["CVE-2026-129943"]
title: "Prime CMS: admin GraphQL mutation lets shell commands run on server"
severity: "high"
cvss: 8.6
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "@primecms/core", "fixed": [], "affected": "<= 0.4.0-beta.0", "ecosystem": "npm"}]
ecosystems: []
tags: ["node", "package", "prime-cms", "primecms-core", "self-hosted"]
not_affected_if: ["newer-than-0.4.0-beta.0", "no-admin-access-exposed"]
published_at: "2026-11-16T15:17:29+00:00"
first_seen_at: "2026-11-16T15:37:56+00:00"
updated_at: "2026-11-16T15:43:49+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129943", "first_seen_at": "2026-11-16T15:37:56+00:00"}, {"source": "analyst", "url": "https://github.com/birkir/prime/issues/549", "first_seen_at": "2026-11-16T15:43:49+00:00", "cites": ["https://github.com/birkir/prime/issues/549", "https://github.com/birkir/prime/blob/v0.3.4-beta.3/packages/prime-core/src/modules/internal/utils/updateNpmPackages.ts"]}]
exploit_sources: []
---

# Prime CMS: admin GraphQL mutation lets shell commands run on server

Link for people: https://infrastack.ai/live/CVE-2026-129943 (this .md is for agents)

Prime CMS (@primecms/core) through 0.4.0-beta.0 passes an unvalidated package version string from the updateSystem GraphQL mutation into child_process.exec(). An authenticated administrator can append shell metacharacters to run arbitrary commands as the server process.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- npm:@primecms/core affected <= 0.4.0-beta.0 fixed no fixed version listed

## How to check

Run npm ls @primecms/core, or read node_modules/@primecms/core/package.json. Version 0.4.0-beta.0 or earlier is affected. The updateSystem mutation is in the core resolver (PrimeResolver.ts), so it is present in every install. Whether it is reachable depends on who can get an admin token. The reporter says self-registration grants admin, so check your user list for accounts you do not recognise.

## Fix

No fixed version: the project has not responded in issue #549 and no release is known. Remove or restrict access to the GraphQL endpoint until patched.

## Timeline

- 2026-11-16T15:37:56+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129943
- 2026-11-16T15:43:49+00:00 analyst https://github.com/birkir/prime/issues/549 — VulnCheck advisory + reporter issue #549 (open, no maintainer reply, no PoC, no fix). Code read: exec() with joined args in updateNpmPackages.ts at v0.3.4-beta.3. Reporter says any self-registered user is admin (sibling CVE-2026-129941), so the admin precondition may be trivial. Nothing verified: no vendor/maintainer page.

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/prime-cms-through-0.4.0-beta.0-os-command-injection-via-updatesystem-mutation
- [describes] Security: Multiple Critical Vulnerabilities in Prime Core (#549) https://github.com/birkir/prime/issues/549
- [describes] updateNpmPackages.ts at v0.3.4-beta.3 https://github.com/birkir/prime/blob/v0.3.4-beta.3/packages/prime-core/src/modules/internal/utils/updateNpmPackages.ts

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
