/

CVE-2026-121945

Severity:

HIGH RISK

(7.6)

Broken Access Control (CWE-639) in CoopCycle Web API

CVE-2026-121945

Received

Vulnerability type

Category:

Broken Access Control

CWE:

CWE-639

Impact:

Unauthorized access to and modification of incidents, orders, and tasks

Severity:

HIGH RISK

(7.6)

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

CoopCycle's incident operations check for a courier role but may not verify that the courier is authorized to access each specific incident. A courier could potentially enumerate incident IDs and read or change incidents associated with other stores, including repricing, canceling, or rescheduling orders and tasks.

Affected context

The issue is described in CoopCycle coopcycle-web versions before 6.20.1 and concerns incident operations exposed through the API. It becomes risky when access is granted based only on the courier role, without checking whether the authenticated courier is permitted to act on the particular incident and its associated store, order, or task.

Exploit preconditions

  • Attack surface: Incident API operations, including PUT /api/incidents/{id}/action
  • Required access: An account with courier access
  • Trigger point: Reading or submitting an action for an incident identified by its ID
  • Why exploitation is possible: Role-level access checks may not enforce authorization for the specific incident; sequential IDs may make other incidents easier to discover

Why this happens

The underlying issue is a failure of object-level authorization. Checking that a caller has ROLE_COURIER establishes a broad role, but does not establish that the caller may access or modify the incident identified in a request. This maps to CWE-639: Authorization Bypass Through User-Controlled Key, where a user-controlled identifier can be used to access another subject's data or actions without an adequate per-object permission check.

Potential impact

  • Couriers may be able to read incidents associated with other stores
  • Orders or tasks may be repriced, canceled, or rescheduled without authorization
  • Operational records and delivery workflows could be disrupted
  • Incident data could be exposed across tenant or store boundaries

General mitigation guidance

Defensive patterns focus on enforcing authorization for every object and action, rather than relying on a role check alone.

  • Scope incident lookups to the authenticated courier's permitted stores and resources
  • Check authorization on both read and state-changing operations
  • Treat client-supplied object identifiers as untrusted references
  • Apply least privilege to courier roles and service accounts
  • Use secure-by-default authorization policies that deny access unless explicitly granted

How teams detect issues like this

Review incident API handlers and service methods for role checks that are not followed by object-level authorization. Static analysis and code review can look for request-controlled identifiers used in data access or mutation without ownership, tenant, or relationship checks. Where appropriate, enforce policies requiring authorization checks for every read and state-changing endpoint, and monitor for unusual access to incidents across stores or repeated requests for sequential identifiers.

Sources

SourceLink
github.comgithub.com/coopcycle/coopcycle-web/blob/v6.19.1/src/Entity/Incident/Incident.php#L43-L71
github.comgithub.com/coopcycle/coopcycle-web/commit/d997393d128afa1febe34e8f295b9511c12d19a0
github.comgithub.com/coopcycle/coopcycle-web/issues/5390
hackmd.iohackmd.io/@hieund/coopcycle-incident-courier-cross-tenant-bola
vulncheck.comvulncheck.com/advisories/coopcycle-coopcycle-web-before-6.20.1-idor-via-incident-resource-and-action-endpoint
hackmd.iohackmd.io/@hieund/cve-2026-121945-coopcycle-incident-courier-cross-tenant-bola

Frequently asked

questions

The described attack requires courier access; the description does not establish that unauthenticated users can exploit it.

An attacker needs an account or other means of access with courier privileges and a way to reach the incident API.

Enforce per-incident authorization on every operation, including reads and changes, and scope lookups to resources the authenticated courier is allowed to access.

Treat IDs supplied by clients as untrusted, use deny-by-default object-level policies, and test that users cannot access or modify resources outside their authorized scope.

Find out what's already
exploitable in your codebase.