{"id":"CVE-2026-129943","kind":"vulnerability","aliases":["CVE-2026-129943"],"related":[],"title":"Prime CMS: admin GraphQL mutation lets shell commands run on server","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.","summary":"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.","severity":"high","cvss":8.6,"epss":null,"exploited":false,"exploited_at":null,"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"],"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.","status":"open","published_at":"2026-11-16T15:17:29+00:00","first_seen_at":"2026-11-16T15:37:56+00:00","triaged_at":"2026-11-16T15:40:10+00:00","updated_at":"2026-11-16T15:43:49+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-16T15:40:10Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"internet","title":"Prime CMS: admin GraphQL mutation lets shell commands run on server","impact":"high","summary":"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.","audience":"businesses","category":"package","nicknames":[],"who_cares":["prime-cms","primecms-core","self-hosted","node"],"confidence":0.6,"fix_status":"unknown","needs_auth":"yes","worst_case":"Shell commands run as the CMS server process user","analyst_note":"Confirm a fixed version and whether the updateSystem mutation is exposed by default; check the VulnCheck advisory for details.","how_to_check":"- Check the installed `@primecms/core` version in `package.json` or `node_modules/@primecms/core/package.json`, and treat `0.4.0-beta.0` or earlier as affected.\n- Confirm whether the `updateSystem` GraphQL mutation is reachable on your instance.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-admin-access-exposed","newer-than-0.4.0-beta.0"],"who_is_affected":"Teams running a self-hosted Prime CMS instance at version 0.4.0-beta.0 or earlier with the updateSystem mutation reachable. The attacker needs administrator credentials, so instances without admin exposure are at lower risk. The sources do not name a patched version.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000759,"input_tokens":4618,"output_tokens":594,"severity_before":"high"},"analyst_status":"done","analyst_note":"Confirm a fixed version and whether the updateSystem mutation is exposed by default; check the VulnCheck advisory for details.","search":"'-129943':14A,17A '-2026':13A,16A '0.4.0':34B,68C 'add':111C 'admin':3A 'administr':51B,84C 'allow':82C 'append':53B,96C 'arbitrari':58B 'attack':94C 'authent':50B,83C 'beta.0':35B,69C 'child_process.exec':48B,108C 'cms':2A,23B,31B,65C 'command':8A,59B,73C,88C,115C,117C 'contain':70C 'core':26B 'cve':12A,15A 'execut':86C,116C 'graphql':4A,45B,79C 'host':29B 'inject':74C 'instal':114C 'let':6A 'metacharact':55B,98C 'mutat':5A,46B,80C 'node':19B 'npm':113C 'os':72C 'packag':20B,39B,91C 'pass':36B,106C 'prime':1A,22B,30B,64C 'prime-cm':21B 'primecm':25B 'primecms-cor':24B 'primecms/core':18A,32B,66C 'process':63B,121C 'run':9A,57B 'self':28B 'self-host':27B 'server':11A,62B,120C 'shell':7A,54B,87C,97C 'string':41B,93C 'unvalid':38B,101C 'updatesystem':44B,78C 'valu':103C 'version':40B,92C,102C 'via':89C 'vulner':75C 'yarn':110C","nicknames":[],"mitigations":[],"who_affected":"Self-hosted Prime CMS (@primecms/core <= 0.4.0-beta.0) installs. The updateSystem GraphQL mutation passes a package version string to child_process.exec(), so an administrator can run shell commands as the server user. The reporter says open registration makes any new account an administrator, so an internet-exposed instance may be reachable without trusted admin credentials. Teams not running Prime CMS can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"none","audience":"developers","plain_action":null,"pkeys":["core"],"ptokens":["core","primecms"],"labels":["high","node","package","primecms","primecmscore","selfhosted"],"campaign_type":null,"search_a":"'-129943':14A,17A '-2026':13A,16A 'admin':3A 'cms':2A 'command':8A 'cve':12A,15A 'graphql':4A 'let':6A 'mutat':5A 'prime':1A 'primecms/core':18A 'run':9A 'server':11A 'shell':7A","search_b":"'0.4.0':34B 'administr':51B 'append':53B 'arbitrari':58B 'authent':50B 'beta.0':35B 'child_process.exec':48B 'cms':23B,31B 'command':59B 'core':26B 'graphql':45B 'host':29B 'metacharact':55B 'mutat':46B 'node':19B 'packag':20B,39B 'pass':36B 'prime':22B,30B 'prime-cm':21B 'primecm':25B 'primecms-cor':24B 'primecms/core':32B 'process':63B 'run':57B 'self':28B 'self-host':27B 'server':62B 'shell':54B 'string':41B 'unvalid':38B 'updatesystem':44B 'version':40B","search_c":"'0.4.0':68C 'add':111C 'administr':84C 'allow':82C 'append':96C 'attack':94C 'authent':83C 'beta.0':69C 'child_process.exec':108C 'cms':65C 'command':73C,88C,115C,117C 'contain':70C 'execut':86C,116C 'graphql':79C 'inject':74C 'instal':114C 'metacharact':98C 'mutat':80C 'npm':113C 'os':72C 'packag':91C 'pass':106C 'prime':64C 'primecms/core':66C 'process':121C 'server':120C 'shell':87C,97C 'string':93C 'unvalid':101C 'updatesystem':78C 'valu':103C 'version':92C,102C 'via':89C 'vulner':75C 'yarn':110C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T15:17:29+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129943","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129943","severity":null,"published_at":"2026-11-16T15:17:29+00:00","modified_at":"2026-11-16T15:17:29+00:00","first_seen_at":"2026-11-16T15:37:56+00:00","fetched_at":"2026-11-16T15:37:56+00:00","note":null},{"source":"analyst","external_id":"CVE-2026-129943:4134","url":"https://github.com/birkir/prime/issues/549","severity":null,"published_at":"2026-11-16T15:43:49+00:00","modified_at":"2026-11-16T15:43:49+00:00","first_seen_at":"2026-11-16T15:43:49+00:00","fetched_at":"2026-11-16T15:43:49+00:00","note":"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.","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"]}],"documents":[{"id":170626,"url":"https://www.vulncheck.com/advisories/prime-cms-through-0.4.0-beta.0-os-command-injection-via-updatesystem-mutation","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"},{"id":170703,"url":"https://github.com/birkir/prime/issues/549","title":"Security: Multiple Critical Vulnerabilities in Prime Core (#549)","kind":"issue","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"describes","confidence":null,"note":null},{"id":170730,"url":"https://github.com/birkir/prime/blob/v0.3.4-beta.3/packages/prime-core/src/modules/internal/utils/updateNpmPackages.ts","title":"updateNpmPackages.ts at v0.3.4-beta.3","kind":"other","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"describes","confidence":null,"note":null}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}