/

CVE-2026-82882

Severity:

HIGH RISK

(8.8)

Broken Access Control (CWE-862) in Devtron Webhook

CVE-2026-82882

Deferred

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-862

Impact:

Unauthorized Administrative Access and Platform Compromise

Severity:

HIGH RISK

(8.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

Devtron contains an authorization weakness in the webhook API-token endpoint, allowing an authenticated user to retrieve administrative API tokens by supplying application context parameters. Successful exploitation may expose plaintext super-admin JWTs and enable broad control of the Devtron platform.

Affected context

The vulnerability occurs in Devtron deployments where the webhook API-token endpoint is reachable by authenticated users but does not adequately verify whether the requesting account is authorized to access the requested project, environment, application, or token. The risk is greatest when tokens are returned in plaintext and carry super-admin privileges.

Exploit preconditions

  • Attack surface: The authenticated Devtron orchestrator API
  • Required access: Any valid authenticated Devtron account
  • Trigger point: A request to the webhook API-token endpoint with selected project, environment, and application context
  • Why exploitation is possible: The endpoint does not consistently enforce authorization checks before returning administrative token material

Why this happens

The underlying flaw is missing or insufficient authorization enforcement on a sensitive API operation. The endpoint appears to rely on authentication and request parameters without verifying that the caller is permitted to access the referenced resources or retrieve the associated token. This behavior maps to CWE-862: Missing Authorization, in which an application confirms identity but fails to enforce permissions for a protected action.

Potential impact

  • An attacker may obtain plaintext super-admin JWT tokens
  • An attacker could perform administrative actions across the Devtron platform
  • Application deployments, configurations, and environments may be modified
  • Secrets, build artifacts, or operational data could be accessed
  • Compromised tokens may enable persistence or lateral movement within connected systems

General mitigation guidance

Mitigation generally focuses on enforcing authorization at the endpoint and service-layer boundaries rather than relying on authentication alone.

Common defensive patterns include:

  • Apply explicit, server-side authorization checks for every referenced project, environment, and application
  • Use deny-by-default access control with least-privilege roles
  • Avoid returning long-lived or broadly privileged tokens to ordinary API consumers
  • Prefer narrowly scoped, short-lived credentials for webhook and automation functions
  • Reduce trust in user-supplied resource identifiers by resolving access from the authenticated principal
  • Protect sensitive tokens in transit and at rest, and avoid exposing them in API responses where possible
  • Rotate potentially exposed credentials and review their downstream permissions

How teams detect issues like this

Organizations can look for this class of issue through:

  • Static analysis and API policy checks that identify sensitive endpoints without authorization middleware
  • Code review signals such as authentication checks without object-level permission checks
  • Integration tests covering cross-project, cross-environment, and cross-application access attempts
  • API gateway policies requiring resource-level authorization for token-related operations
  • Audit-log monitoring for unusual token retrieval, administrative activity, or access across unrelated resources
  • Automated security review tools that identify missing function-level or object-level access controls

Sources

SourceLink
github.comgithub.com/devtron-labs/devtron
github.comgithub.com/devtron-labs/devtron/blob/v2.2.0/api/apiToken/ApiTokenRestHandler.go
github.comgithub.com/devtron-labs/devtron/blob/v2.2.0/pkg/apiToken/ApiTokenService.go
github.comgithub.com/devtron-labs/devtron/issues/7013
vulncheck.comvulncheck.com/advisories/devtron-through-2.2.0-missing-authorization-via-webhook-api-token-endpoint

Frequently asked

questions

Yes, where the Devtron API is reachable and an attacker possesses any valid authenticated account. Exploitation does not require the account to already have administrative privileges.

The key prerequisite is authenticated access to Devtron. The account's ordinary project or application permissions may not prevent the vulnerable endpoint from disclosing administrative token material.

Enforce server-side, resource-level authorization before processing token requests, and replace broadly privileged exposed credentials with narrowly scoped, short-lived alternatives where feasible.

Apply deny-by-default authorization, test every sensitive endpoint for horizontal and vertical privilege escalation, minimize token privileges, and monitor access to credential-bearing APIs.

Find out what's already
exploitable in your codebase.