CVE-2026-45688: Rocket.Chat: Pre-Auth NoSQL Injection in CAS Login Handler leading to Arbitrary CAS/SAML User Session Hijack
CVE-2026-45688 affects 195 listed versions of Rocket.Chat in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Rocket.Chat
195 of 250 listed versions are affected. Fixed in 8.4.1, 8.3.3, 8.2.3, 8.1.4, 8.0.5, 7.13.7, 7.10.11. The newest release, 9.0.0, is not affected.
8.4.0 8.3.2 8.3.1 8.3.0 8.3.0-rc4 8.3.0-rc3 8.3.0-rc2 8.3.0-rc1 8.3.0-rc0 8.2.2 8.2.1 8.2.0 8.2.0-rc2 8.2.0-rc1 8.2.0-rc0 8.1.3 8.1.2 8.1.1 8.1.0 8.0.4 8.0.3 8.0.2 8.0.1 8.0.0 8.0.0-rc5 8.0.0-rc4 8.0.0-rc3 8.0.0-rc2 8.0.0-rc1 8.0.0-rc0 7.13.6 7.13.5 7.13.4 7.13.3 7.13.2 7.13.1 7.13.0 7.12.7 7.12.6 7.12.5 7.12.4 7.12.3 7.12.2 7.12.1 7.12.0 7.11.7 7.11.6 7.11.5 7.11.4 7.11.3 7.11.2 7.11.1 7.11.0 7.10.10 7.10.9 7.10.8 7.10.7 7.10.6 7.10.5 7.10.4 and 135 more
What it is
Rocket.Chat is an open-source, secure, fully customizable communications platform. Prior to 8.5.0, 8.4.1, 8.3.3, 8.2.3, 8.1.4, 8.0.5, 7.13.7, and 7.10.11, Rocket.Chat's CAS login handler forwards the client-supplied options.cas.credentialToken value straight into a MongoDB findOne({_id: ...}) query without any runtime type check. TypeScript's string parameter annotation is erased at runtime, so an unauthenticated attacker can substitute a MongoDB query operator ({"$gt": ""}, {"$ne": null}, etc.) for what the server expects to be an opaque ticket string. The injected operator matches the first unexpired document in the credential_tokens collection, bypassing the CAS ticket check entirely. When any legitimate CAS or SAML SSO login is in flight, the attacker's next DDP login call matches the same credential-token row via the NoSQL operator and is issued a full Meteor auth token (userId + token) bound to the victim. The token is immediately usable against the complete REST and DDP surface as that user. If the victim is an administrator, this escalates to full instance compromise via Apps-Engine app install. This vulnerability is fixed in 8.5.0, 8.4.1, 8.3.3, 8.2.3, 8.1.4, 8.0.5, 7.13.7, and 7.10.11.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (GitHub)
Published by GitHub on 24 June 2026. Last changed 3 November 2026.
Sources
Check one version you run: look CVE-2026-45688 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.