/

CVE-2026-135163

Severity:

HIGH RISK

(7.4)

Missing Authentication (CWE-306) in Okou OAuth Flows

CVE-2026-135163

Received

Vulnerability type

Category:

Missing Authentication

CWE:

CWE-306

Impact:

Unauthorized account and integration binding

Severity:

HIGH RISK

(7.4)

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

Okou API OAuth flows for Microsoft Teams, legacy Slack, and GitHub Apps trust caller-supplied user and organization identifiers without adequately verifying the caller's authority over them. An unauthenticated attacker who knows a member's identifiers may be able to link their own external account or installation to that member's Okou identity and organization.

Affected context

The issue affects Okou API integrations that use the Microsoft Teams, legacy Slack, or GitHub App OAuth flows and accept caller-supplied userId and orgId values without verifying the caller's authority to bind those identities. Risk depends on whether the relevant OAuth flow is reachable and whether an attacker can obtain a member's identifiers.

Exploit preconditions

  • Attack surface: The affected Okou API OAuth integration flows
  • Required access: No authenticated Okou account is required; the attacker must know a member's identifiers
  • Trigger point: Completion of an OAuth flow for Microsoft Teams, legacy Slack, or a GitHub App installation
  • Why exploitation is possible: The flow trusts caller-supplied user and organization identifiers without sufficient authentication or authorization checks

Why this happens

The OAuth flows accept identity and organization references supplied by the caller without confirming that the caller is authenticated and authorized to bind them. This is a missing authentication control, mapping to CWE-306: Missing Authentication for Critical Function. The insecure pattern is allowing a sensitive account-linking operation to proceed based on identifiers alone.

Potential impact

  • An attacker may bind their external account or app installation to a victim's Okou identity
  • An attacker could associate an integration with an organization without authorization
  • Victims may lose control over expected integration behavior or receive misleading activity
  • The incident may expose connected workflows or data, depending on integration permissions

General mitigation guidance

Mitigation generally centers on authenticating and authorizing the person initiating each identity-linking or installation operation.

Common defensive patterns include:

  • Deriving user and organization identities from a trusted authenticated session rather than accepting them as authoritative caller input
  • Verifying authorization and ownership at the point of binding
  • Using short-lived, integrity-protected OAuth state tied to the initiating user and organization
  • Requiring confirmation for sensitive account or installation links
  • Applying least-privilege permissions to connected integrations and auditing binding changes

How teams detect issues like this

High-level detection approaches include:

  • Reviewing OAuth callbacks and account-linking handlers for reliance on caller-supplied identity or organization identifiers
  • Using static analysis or code review checks to flag sensitive operations lacking authentication and authorization guards
  • Enforcing policies that require OAuth state validation and trusted-session identity checks
  • Monitoring for unexpected integration bindings, especially changes involving accounts or organizations with no corresponding authenticated initiation

Automated code review tools may help identify flows where identity values are accepted without an authorization check.

Sources

SourceLink
github.comgithub.com/okou-ai/okou/blob/api-v1.761.1/turbo/apps/api/src/signals/routes/teams-oauth.ts
github.comgithub.com/okou-ai/okou/commit/c9c600bedfbe3463fa8e38e730dbba31df440a92
github.comgithub.com/okou-ai/okou/pull/42113
github.comgithub.com/okou-ai/okou/pull/42592
github.comgithub.com/okou-ai/okou/releases/tag/api-v1.762.0
vulncheck.comvulncheck.com/advisories/okou-api-before-1.762.0-missing-authentication-via-integration-oauth-flows

Frequently asked

questions

The affected flows are API-based OAuth integrations, so an attacker may interact with them remotely if they are reachable. The described issue does not require an authenticated Okou account, but the attacker must know a member's identifiers.

No prior Okou authentication is described as necessary. Knowing the target member's user and organization identifiers is a stated prerequisite.

Require an authenticated, authorized session and bind the OAuth operation to identities derived from that trusted session—not identifiers treated as proof of identity.

Review sensitive OAuth and account-linking flows for server-side authentication, authorization, and state validation. Monitor and audit identity-binding changes.

Find out what's already
exploitable in your codebase.