All vulnerabilities

Servers and applications

CVE-2026-45689

Pre-Auth NoSQL Injection in OAuth2 Token Endpoint leading to Arbitrary User ATO

Severity
Critical 9.1
Published
14 May 2026
Last changed
3 Nov 2026
Added to UpHeron
3 Nov 2026
Fixed in
8.0.5, 8.1.4, 8.2.3, 8.3.3, 8.4.1, 8.5.0
Exploit chance
0.5% in the next 30 daysHigher than 45% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
NoSQL injection (CWE-943)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Also known as
GHSA-8p25-fm45-pjrw
Sources
CVE Program, Project advisories (GitHub)

Description

An unauthenticated network attacker obtains a valid Rocket.Chat OAuth access token for an arbitrary user by sending a single HTTP POST with MongoDB query operators to /oauth/token. The Rocket.Chat OAuth2 server does not validate that grant parameters are strings before forwarding them to findOne({...}) against the oauth_apps and oauth_access_tokens collections, so an attacker substitutes {"$ne": null} for client_id, client_secret, and refresh_token and receives a freshly minted {access_token, refresh_token} pair bound to whichever user's refresh token Mongo returned first.

The resulting access token is a first-class bearer credential against the full /api/v1/* surface as that user. By iterating with $nin / $regex operators the attacker walks the entire oauth_access_tokens collection, collecting one fresh access token per user per request. If any matched token belongs to an admin, the stolen bearer gives full admin API access (including Apps-Engine app installation, i.e.

From RocketChat/Rocket.Chat's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Rocket.ChatServers and applications · cna:rocketchat|rocket.chat
  • From 8.5.0-rc.0 before 8.5.0
  • From 8.4.0-rc.0 before 8.4.1
  • From 8.3.0-rc.0 before 8.3.3
  • From 8.2.0-rc.0 before 8.2.3
All 8 release lines
  • Every version before 7.10.11
  • From 7.11.0-rc.0 before 7.13.7
  • From 8.0.0-rc.0 before 8.0.5
  • From 8.1.0-rc.0 before 8.1.4
  • From 8.2.0-rc.0 before 8.2.3
  • From 8.3.0-rc.0 before 8.3.3
  • From 8.4.0-rc.0 before 8.4.1
  • From 8.5.0-rc.0 before 8.5.0
Rocket.ChatServers and applications · github:rocketchat/rocket.chat
  • Every version before 7.10.11

About Rocket.Chat

open source team chat platform

From Wikidata, CC0 1.0.
Docker Hub pulls
100,039,688Docker Hub, 15 Nov 2026
GitHub stars
46,534GitHub, 15 Nov 2026
Forks
14,157GitHub, 15 Nov 2026
Latest release
9.0.0GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
MIT LicenseWikidata
Written in
TypeScriptWikidata
First published on GitHub
19 May 2015GitHub

Release lines

ReleaseLatestSecurity fixes
8.9 (LTS)LTS8.9.1Until 31 Oct 2027
8.88.8.2Until 1 Mar 2027
8.78.7.2Until 31 Jan 2027
8.68.6.4Until 31 Jan 2027
8.5 (LTS)LTS8.5.5Until 31 Jul 2027
8.48.4.6Ended 31 Oct 2026

From endoflife.date.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-45689
  • GitHub Advisory Database https://github.com/advisories/GHSA-8p25-fm45-pjrw
  • github.com https://github.com/RocketChat/Rocket.Chat/security/advisories/GHSA-8p25-fm45-pjrw