Skip to content

Unauthorized Access to OAuth App Details (Versions ≤ 6.12.0)

High
julio-rocketchat published GHSA-g4wm-fg3c-g4p2 Jan 14, 2026

Package

npm Rocket.Chat (npm)

Affected versions

<6.12.0

Patched versions

>=6.12.0

Description

Summary

A vulnerability in Rocket.Chat <6.12.0 allows low-privileged users, if they know an app ID, to access sensitive information about configured OAuth applications by invoking an API endpoint that lacks proper authorization checks.

Details

In Rocket.Chat versions up to 6.12.0, the API endpoint GET /api/v1/oauth-apps.get is exposed to any authenticated user, regardless of their role or permissions. This endpoint returns an OAuth application, as long as the user knows its ID, including potentially sensitive fields such as client_id and client_secret.

PoC

Steps to Reproduce:

  1. Log in as a regular (non-admin) user.
  2. Obtain your X-Auth-Token and X-User-Id.
  3. Send the following HTTP request:
GET /api/v1/oauth-apps.get?AppId=zapier
X-Auth-Token: <user_token>
X-User-Id: <user_id>

Example Response:

image

The response contains internal configuration details of OAuth apps set up in the instance, including credentials that should only be accessible by admins.

Vulnerable File and Code Location

Affected File:
apps/meteor/app/api/server/v1/oauthapps.ts

Relevant Code Block (lines 25–45):
image

Issue:
The code above requires the user to be authenticated (authRequired: true) but does not perform any authorization or permission checks such as hasPermissionAsync(). As a result, any authenticated user, regardless of role, can access this endpoint and retrieve sensitive configuration data.

Additional Information

Affected Versions: Rocket.Chat ≤ 6.12.0

Impact

Disclosure of client_id and client_secret could lead to further compromise of third-party integrated services.

Violation of the principle of least privilege: users without administrative roles gain access to configuration data they are not authorized to see.

Potential compliance issues depending on how OAuth integrations are used (e.g., exposing keys to cloud identity providers).

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

CVE ID

CVE-2026-23477

Weaknesses

Improper Privilege Management

The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. Learn more on MITRE.

Missing Authorization

The product does not perform an authorization check when an actor attempts to access a resource or perform an action. Learn more on MITRE.

Credits