CVE-2026-45688: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in RocketChat Rocket.Chat
CVE-2026-45688 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 involves improper neutralization of special elements in data query logic within the CAS login handler, allowing unauthenticated attackers to bypass CAS ticket checks by injecting MongoDB query operators. Successful exploitation can lead to full authentication as a victim user, including administrators, resulting in complete instance compromise. The vulnerability has a CVSS score of 9.1 (critical).
AI Analysis
Technical Summary
Rocket.Chat's CAS login handler prior to the fixed versions forwards the client-supplied options.cas.credentialToken directly into a MongoDB findOne({_id: ...}) query without runtime type checking. Because TypeScript's string annotations are erased at runtime, an attacker can supply a MongoDB query operator (e.g., {$gt: ""}, {$ne: null}) instead of a string token. This operator matches the first unexpired document in the credential_tokens collection, bypassing the CAS ticket validation. When a legitimate CAS or SAML SSO login is in progress, the attacker can then perform a DDP login call that matches the same credential-token document, receiving a full Meteor authentication token bound to the victim's user ID. This token grants access to the full REST and DDP API surfaces as the victim user. If the victim is an administrator, the attacker can escalate to full instance compromise by installing Apps-Engine apps. The issue is fixed in 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.
Potential Impact
An unauthenticated attacker can bypass CAS ticket validation and authenticate as any user, including administrators, without valid credentials. This leads to full compromise of the Rocket.Chat instance, allowing unauthorized access to all REST and DDP APIs and potential installation of malicious apps via the Apps-Engine. The vulnerability severely impacts confidentiality and integrity but does not affect availability.
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 advisory. No alternative mitigations are specified.
CVE-2026-45688: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in RocketChat Rocket.Chat
Description
CVE-2026-45688 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 involves improper neutralization of special elements in data query logic within the CAS login handler, allowing unauthenticated attackers to bypass CAS ticket checks by injecting MongoDB query operators. Successful exploitation can lead to full authentication as a victim user, including administrators, resulting in complete instance compromise. The vulnerability has a CVSS score of 9.1 (critical).
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's CAS login handler prior to the fixed versions forwards the client-supplied options.cas.credentialToken directly into a MongoDB findOne({_id: ...}) query without runtime type checking. Because TypeScript's string annotations are erased at runtime, an attacker can supply a MongoDB query operator (e.g., {$gt: ""}, {$ne: null}) instead of a string token. This operator matches the first unexpired document in the credential_tokens collection, bypassing the CAS ticket validation. When a legitimate CAS or SAML SSO login is in progress, the attacker can then perform a DDP login call that matches the same credential-token document, receiving a full Meteor authentication token bound to the victim's user ID. This token grants access to the full REST and DDP API surfaces as the victim user. If the victim is an administrator, the attacker can escalate to full instance compromise by installing Apps-Engine apps. The issue is fixed in 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.
Potential Impact
An unauthenticated attacker can bypass CAS ticket validation and authenticate as any user, including administrators, without valid credentials. This leads to full compromise of the Rocket.Chat instance, allowing unauthorized access to all REST and DDP APIs and potential installation of malicious apps via the Apps-Engine. The vulnerability severely impacts confidentiality and integrity but does not affect availability.
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 advisory. No alternative mitigations are specified.
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: 6a3c4ce14853345fc1df8cef
Added to database: 06/24/2026, 21:32:17 UTC
Last enriched: 06/24/2026, 21:46:17 UTC
Last updated: 06/24/2026, 22:55:33 UTC
Views: 4
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.