# CVE-2026-45689: Rocket.Chat: Pre-Auth NoSQL Injection in OAuth2 Token Endpoint leading to Arbitrary User ATO

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.53% (percentile 38, 2026-11-26)
- **CWE:** CWE-943
- **Published:** 2026-06-24T20:57:32.281Z
- **Modified:** 2026-11-03T23:17:44.823Z

## Who should check

- Anyone running RocketChat Rocket.Chat \>= 8.5.0-rc.0, \< 8.5.0; \>= 8.4.0-rc.0, \< 8.4.1; \>= 8.3.0-rc.0, \< 8.3.3; \>= 8.2.0-rc.0, \< 8.2.3; \>= 8.1.0-rc.0, \< 8.1.4; \>= 8.0.0-rc.0, \< 8.0.5; \>= 7.11.0-rc.0, \< 7.13.7; \< 7.10.11

## Description

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, 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. server-side code execution). No account, credentials, userId, or prior interaction with the instance are required. 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.

## Affected and fixed versions

- RocketChat Rocket.Chat: \>= 8.5.0-rc.0, \< 8.5.0; \>= 8.4.0-rc.0, \< 8.4.1; \>= 8.3.0-rc.0, \< 8.3.3; \>= 8.2.0-rc.0, \< 8.2.3; \>= 8.1.0-rc.0, \< 8.1.4; \>= 8.0.0-rc.0, \< 8.0.5; \>= 7.11.0-rc.0, \< 7.13.7; \< 7.10.11 (cvelist)

## Mitigation

- Upgrade Rocket.Chat to 7.10.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-45689. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45689.md
Affected: RocketChat Rocket.Chat >= 8.5.0-rc.0, < 8.5.0; >= 8.4.0-rc.0, < 8.4.1; >= 8.3.0-rc.0, < 8.3.3; >= 8.2.0-rc.0, < 8.2.3; >= 8.1.0-rc.0, < 8.1.4; >= 8.0.0-rc.0, < 8.0.5; >= 7.11.0-rc.0, < 7.13.7; < 7.10.11
Fixed in: RocketChat Rocket.Chat 8.5.0, RocketChat Rocket.Chat 8.4.1, RocketChat Rocket.Chat 8.3.3, RocketChat Rocket.Chat 8.2.3, RocketChat Rocket.Chat 8.1.4, RocketChat Rocket.Chat 8.0.5, RocketChat Rocket.Chat 7.13.7, RocketChat Rocket.Chat 7.10.11

Steps:
1. Search this machine and project for RocketChat Rocket.Chat: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-45689 being exploited?

There is no confirmed exploitation: CVE-2026-45689 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-45689?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-45689?

RocketChat Rocket.Chat \>= 8.5.0-rc.0, \< 8.5.0; \>= 8.4.0-rc.0, \< 8.4.1; \>= 8.3.0-rc.0, \< 8.3.3; \>= 8.2.0-rc.0, \< 8.2.3; \>= 8.1.0-rc.0, \< 8.1.4; \>= 8.0.0-rc.0, \< 8.0.5; \>= 7.11.0-rc.0, \< 7.13.7; \< 7.10.11.

### Is there a fix for CVE-2026-45689?

Yes. Fixed in RocketChat Rocket.Chat 8.5.0, RocketChat Rocket.Chat 8.4.1, RocketChat Rocket.Chat 8.3.3, RocketChat Rocket.Chat 8.2.3, RocketChat Rocket.Chat 8.1.4, RocketChat Rocket.Chat 8.0.5, RocketChat Rocket.Chat 7.13.7, RocketChat Rocket.Chat 7.10.11. Upgrade Rocket.Chat to 7.10.11 or later.

### How do I check if I'm affected by CVE-2026-45689?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/RocketChat/Rocket.Chat/security/advisories/GHSA-8p25-fm45-pjrw>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45689>

HTML: <https://flawdb.com/CVE-2026-45689> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45689>
