/

CVE-2026-125330

Severity:

HIGH RISK

(7.5)

IDOR (CWE-639) in HarnessRouter Workspace API Routes

CVE-2026-125330

Deferred

Vulnerability type

Category:

Broken Object Level Authorization (IDOR)

CWE:

CWE-639

Impact:

Unauthorized cross-workspace access and modification within an organization

Severity:

HIGH RISK

(7.5)

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

HarnessRouter routes that use a session or response identifier check organization access but may not enforce the workspace scope of a non-default workspace API key. If a key holder learns a valid identifier from another workspace in the same organization, they may access or modify the associated resources; the issue does not cross organization boundaries.

Affected context

The issue affects HarnessRouter routes that accept session IDs or response IDs and are accessed with non-default workspace API keys. The authorization gap can arise when a route confirms that a resource belongs to the caller's organization but does not also verify that it belongs to the key's workspace. Console users, organization keys, and Default Workspace keys are intended to have organization-wide access and are not subject to this workspace restriction.

Exploit preconditions

  • Attack surface: Routes that accept a session ID or response ID
  • Required access: A valid non-default workspace API key and the ability to use the affected routes
  • Required knowledge: A valid, non-guessable identifier for a resource in another workspace within the same organization
  • Trigger point: A request to an affected route using that identifier
  • Why exploitation is possible: Organization membership is checked, but the key's workspace scope is not consistently enforced

Why this happens

The underlying flaw is an authorization check that validates access at the organization level without confirming that the requested object is within the caller's permitted workspace. This is an insecure direct object reference pattern associated with CWE-639: Authorization Bypass Through User-Controlled Key. The identifier selects a resource, but authorization does not consistently bind that resource to the workspace represented by the API key.

Potential impact

  • A caller could read sessions, conversation turns, files, traces, and responses in another workspace within the same organization.
  • A caller could overwrite files or cancel or delete sessions outside their workspace.
  • A caller could publish share links for resources they should not control.
  • The issue could expose or disrupt organizational data, but does not provide access across organization boundaries.

General mitigation guidance

Defensive patterns focus on enforcing authorization at the resource and workspace level for every route that accepts an object identifier. Common approaches include:

  • Centrally checking that the requested resource belongs to the workspace associated with the API key.
  • Applying consistent authorization checks to read, update, delete, cancellation, and sharing operations.
  • Treating identifiers as selectors, not proof of authorization, and minimizing reliance on their secrecy.
  • Keeping organization-wide access explicit and limited to intended key types and user roles.
  • Using least-privilege API keys and clear workspace boundaries by default.

How teams detect issues like this

  • Review routes that accept session IDs, response IDs, or other object identifiers for workspace-level authorization checks.
  • Use static analysis or code review rules to flag organization-only checks on resources accessed with workspace-scoped credentials.
  • Test authorization across workspaces within the same organization, including read and state-changing operations.
  • Monitor audit logs for workspace keys accessing resources associated with a different workspace.
  • Enforce policies requiring resource ownership or workspace scope to be checked before data is returned or changed.

Sources

SourceLink
github.comgithub.com/HarnessRouter/harnessrouter/commit/249c6cc9ab51a24a78f4e9809d356718f2ef74b1
github.comgithub.com/HarnessRouter/harnessrouter/pull/417
github.comgithub.com/HarnessRouter/harnessrouter/releases/tag/v0.31.7
github.comgithub.com/HarnessRouter/harnessrouter/security/advisories/GHSA-9pjr-97x3-c4wv

Frequently asked

questions

No. The described issue is limited to workspaces within the same organization.

A caller needs a non-default workspace API key and a valid session or response identifier from another workspace in that organization.

Check that every requested resource belongs to the workspace authorized for the API key, across both read and state-changing routes.

Apply centralized, resource-level authorization checks, test cross-workspace access boundaries, and grant organization-wide access only to explicitly intended credentials.

Find out what's already
exploitable in your codebase.