CVE-2026-45689: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in RocketChat Rocket.Chat
CVE-2026-45689 is a critical vulnerability in Rocket.Chat prior to versions 7.10.11, 7.13.7, 8.0.5, 8.1.4, 8.2.3, 8.3.3, 8.4.1, and 8.5.0. It allows an unauthenticated attacker to obtain valid OAuth access tokens for arbitrary users by exploiting improper input validation in the OAuth token endpoint. This enables the attacker to impersonate users, including administrators, and gain full API access without any credentials or prior interaction. The vulnerability arises from the server failing to validate that grant parameters are strings before using them in MongoDB queries, allowing injection of query operators to bypass authentication controls.
AI Analysis
Technical Summary
Rocket.Chat versions prior to 7.10.11, 7.13.7, 8.0.5, 8.1.4, 8.2.3, 8.3.3, 8.4.1, and 8.5.0 contain a vulnerability (CWE-943) where the OAuth2 server does not properly neutralize special MongoDB query operators in grant parameters sent to the /oauth/token endpoint. An unauthenticated attacker can send specially crafted HTTP POST requests with MongoDB operators such as {$ne: null} for client_id, client_secret, and refresh_token fields. This causes the server to return a valid access token bound to a user whose refresh token is returned first by the database query. By iterating with other operators, the attacker can enumerate and obtain access tokens for all users, including administrators. These tokens provide full bearer access to the API, including administrative functions and server-side code execution via Apps-Engine. No authentication or prior knowledge is required. The issue is fixed in the listed patched versions.
Potential Impact
An unauthenticated remote attacker can obtain valid OAuth access tokens for any user, including administrators, without credentials. This leads to full compromise of user accounts and administrative control over the Rocket.Chat instance via the API. The attacker can execute server-side code through administrative API access, resulting in complete system compromise. The vulnerability has a CVSS 3.1 score of 9.1 (critical) due to its ease of exploitation and high impact on confidentiality and integrity.
Mitigation Recommendations
A fix is available in Rocket.Chat versions 7.10.11, 7.13.7, 8.0.5, 8.1.4, 8.2.3, 8.3.3, 8.4.1, and 8.5.0. Users should upgrade to one of these versions or later to remediate this vulnerability. Patch status is confirmed by the vendor's versioning information. No other mitigations are indicated by the vendor advisory.
CVE-2026-45689: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in RocketChat Rocket.Chat
Description
CVE-2026-45689 is a critical vulnerability in Rocket.Chat prior to versions 7.10.11, 7.13.7, 8.0.5, 8.1.4, 8.2.3, 8.3.3, 8.4.1, and 8.5.0. It allows an unauthenticated attacker to obtain valid OAuth access tokens for arbitrary users by exploiting improper input validation in the OAuth token endpoint. This enables the attacker to impersonate users, including administrators, and gain full API access without any credentials or prior interaction. The vulnerability arises from the server failing to validate that grant parameters are strings before using them in MongoDB queries, allowing injection of query operators to bypass authentication controls.
CVSS v3.1
Score 9.1critical
Affected software
pkg:github/rocketchat/Rocket.ChatRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Rocket.Chat versions prior to 7.10.11, 7.13.7, 8.0.5, 8.1.4, 8.2.3, 8.3.3, 8.4.1, and 8.5.0 contain a vulnerability (CWE-943) where the OAuth2 server does not properly neutralize special MongoDB query operators in grant parameters sent to the /oauth/token endpoint. An unauthenticated attacker can send specially crafted HTTP POST requests with MongoDB operators such as {$ne: null} for client_id, client_secret, and refresh_token fields. This causes the server to return a valid access token bound to a user whose refresh token is returned first by the database query. By iterating with other operators, the attacker can enumerate and obtain access tokens for all users, including administrators. These tokens provide full bearer access to the API, including administrative functions and server-side code execution via Apps-Engine. No authentication or prior knowledge is required. The issue is fixed in the listed patched versions.
Potential Impact
An unauthenticated remote attacker can obtain valid OAuth access tokens for any user, including administrators, without credentials. This leads to full compromise of user accounts and administrative control over the Rocket.Chat instance via the API. The attacker can execute server-side code through administrative API access, resulting in complete system compromise. The vulnerability has a CVSS 3.1 score of 9.1 (critical) due to its ease of exploitation and high impact on confidentiality and integrity.
Mitigation Recommendations
A fix is available in Rocket.Chat versions 7.10.11, 7.13.7, 8.0.5, 8.1.4, 8.2.3, 8.3.3, 8.4.1, and 8.5.0. Users should upgrade to one of these versions or later to remediate this vulnerability. Patch status is confirmed by the vendor's versioning information. No other mitigations are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-13T04:38:01.164Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3c4ce14853345fc1df8cf2
Added to database: 06/24/2026, 21:32:17 UTC
Last enriched: 06/24/2026, 21:46:08 UTC
Last updated: 06/24/2026, 23:13:43 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.