/

CVE-2026-47129

Severity:

HIGH RISK

(8.1)

Broken Access Control (CWE-862) in NextCRM roles

CVE-2026-47129

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-862

Impact:

Privilege Abuse / Account State Manipulation

Severity:

HIGH RISK

(8.1)

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

NextCRM versions prior to 0.12.0 contain a broken access control flaw in the activateUser and deactivateUser Next.js Server Actions, where role checks are missing.

Any authenticated user, including low-privilege roles like member or viewer, can arbitrarily activate or deactivate other accounts, potentially including administrators, when this condition exists.

Affected context

This vulnerability appears in deployments of NextCRM where user lifecycle operations (activation and deactivation) are exposed through Next.js Server Actions without enforcing role-based authorization.

It is typically present when:

  • All authenticated roles can access user management endpoints
  • Authorization is assumed but not consistently verified on the server side
  • Client-side role checks are relied upon without server-side enforcement

Exploit preconditions

  • Attack surface: Web application interface and HTTP endpoints backing activateUser and deactivateUser actions
  • Required access: Any authenticated account with roles such as member or viewer
  • Trigger point: Invoking the activation or deactivation actions targeting another user ID
  • Why exploitation is possible: The server-side logic fails to confirm that the caller holds the required admin role before performing account state changes

Why this happens

The underlying bug class is broken access control, specifically missing authorization checks on sensitive operations.

In the affected Next.js Server Actions, business logic assumes that only administrators will invoke user activation and deactivation, but does not enforce this assumption via role verification on the server.

This maps to CWE-862: Missing Authorization, where a protected resource or function is accessible without confirming that the requester is allowed to perform that action.

Potential impact

  • Any low-privilege user may deactivate administrator accounts
  • Attackers could reactivate suspended or disabled accounts
  • Disruption of customer support or sales workflows through bulk user deactivation
  • Potential lockout of security or operations staff from the CRM
  • Undermining of governance and approval processes tied to account states

General mitigation guidance

Mitigation generally focuses on enforcing robust, server-side authorization for all sensitive operations and avoiding assumptions based on client-side behavior.

Useful patterns include:

  • Centralizing authorization checks so that user lifecycle actions always verify required roles or permissions
  • Using declarative access control policies (e.g., middleware, guards, or policy engines) to protect administrative endpoints by default
  • Treating account state changes (activation, deactivation, role assignment) as privileged operations that require explicit authorization checks
  • Implementing least privilege by ensuring non-admin roles have no direct path to user administration actions
  • Logging and monitoring user management operations to support detection of inappropriate use

How teams detect issues like this

Detection can rely on both preventative and retrospective techniques:

  • Static analysis or manual review to identify server-side handlers that perform user management without role or permission checks
  • Code review policies that flag any account lifecycle functions lacking centralized authorization enforcement
  • Runtime application monitoring to spot unusual patterns, such as low-privilege users performing many activation or deactivation events
  • Automated security testing or integration tests that attempt administrative actions using non-admin test accounts

Sources

SourceLink
github.comgithub.com/pdovhomilja/nextcrm-app/releases/tag/v0.12.0
github.comgithub.com/pdovhomilja/nextcrm-app/security/advisories/GHSA-gm7p-f88p-vhfr

Frequently asked

questions

It can be exploited by any authenticated user in affected versions, regardless of their role, as long as they can reach the activateUser and deactivateUser actions.

No. The core issue is the absence of a role check, so even the lowest roles like member or viewer can manipulate other users' account states.

Enforce strict, server-side authorization on all user management operations by requiring an appropriate role (such as admin) and centralizing these checks to avoid inconsistent enforcement.

Adopt a policy-driven access control model, ensure that all sensitive endpoints pass through common authorization middleware, and include automated tests that verify non-admin roles cannot perform administrative actions.

Find out what's already
exploitable in your codebase.