/

CVE-2026-129941

Severity:

CRITICAL RISK

(9.8)

Authentication Bypass (CWE-306) in Prime CMS GraphQL

CVE-2026-129941

Received

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-306

Impact:

Unauthenticated administrative access

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Prime CMS contains an authentication bypass in the /prime/graphql endpoint that allows unauthenticated users to register accounts through the createUser mutation. Because the authentication guard is disabled and roles are assigned administrative abilities, a registered attacker may gain control over content, users, webhooks, and settings.

Affected context

The issue affects Prime CMS through version 0.4.0-beta.0 where the GraphQL endpoint exposes the createUser mutation. The risk arises when the authentication check is not enforced and account abilities are derived from a role that is hard-coded to admin.

Exploit preconditions

  • Attack surface: The /prime/graphql endpoint must be reachable.
  • Required access: No prior authentication is required, according to the vulnerability description.
  • Trigger point: Account registration through the createUser mutation.
  • Why exploitation is possible: The isAuthenticated() guard check is commented out, and createAbility() assigns administrative abilities to every role.

Why this happens

The authentication check on a user-creation path is disabled, allowing the operation to proceed without verifying the caller's identity. This maps to CWE-306: Missing Authentication for Critical Function. Hard-coding administrative abilities for every role compounds the issue by granting excessive privileges to accounts created through that path.

Potential impact

  • An unauthenticated attacker could create an account and obtain administrative control.
  • An attacker may alter content, user accounts, webhooks, or application settings.
  • Unauthorized changes could disrupt CMS operations or undermine the integrity of its data.

General mitigation guidance

Mitigation generally focuses on consistently enforcing authentication and authorization at sensitive operations.

Common defensive patterns include:

  • Require verified authentication for account creation and other privileged mutations.
  • Apply authorization checks server-side for each operation, using the caller's actual identity and role.
  • Use deny-by-default permissions and grant only the capabilities needed for each role.
  • Avoid assigning administrative privileges based on hard-coded or client-controlled values.
  • Limit exposure of administrative GraphQL operations and reduce privileges available to application processes.

How teams detect issues like this

  • Review GraphQL resolvers and middleware for mutations that lack enforced authentication or authorization checks.
  • Use static analysis and code review to identify commented-out guards, unconditional admin-role assignments, and overly broad permission mappings.
  • Test unauthenticated requests against sensitive mutations as part of security testing.
  • Enforce policy checks in CI to flag privileged operations without explicit authentication and authorization controls.

Sources

SourceLink
github.comgithub.com/birkir/prime/blob/v0.3.4-beta.3/packages/prime-core/src/modules/internal/index.ts#L67-L69
github.comgithub.com/birkir/prime/blob/v0.3.4-beta.3/packages/prime-core/src/modules/internal/utils/createAbility.ts#L7-L15
github.comgithub.com/birkir/prime/blob/v0.3.4-beta.3/packages/prime-core/src/modules/internal/utils/isAuthenticated.ts#L1-L6
github.comgithub.com/birkir/prime/issues/549
vulncheck.comvulncheck.com/advisories/prime-cms-through-0.4.0-beta.0-authentication-bypass-via-createuser-graphql-mutation

Frequently asked

questions

It may be exploitable remotely when the /prime/graphql endpoint is reachable, because the described registration path does not require prior authentication.

No authenticated account is required for the described attack; access to the exposed GraphQL endpoint is the key condition.

Enforce authentication for sensitive mutations and independently authorize each operation using the authenticated user's actual role and permissions.

Use deny-by-default authorization, review resolver guards and role mappings, and include unauthenticated access tests and policy checks in development workflows.

Find out what's already
exploitable in your codebase.