# CVE-2026-45689: RocketChat Rocket.Chat NoSQL injection in OAuth2 token endpoint

Source: https://junglewise.ai/threats/cve-2026-45689-rocketchat-rocket-chat-nosql-injection-in-oauth2-token-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-24. Updated: 2026-06-24  
License: CC BY 4.0 with a link back

CVE-2026-45689 · Severity: critical · CVSS 9.1 · Published 2026-06-24

Rocket.Chat is a communications platform used for team collaboration and messaging. A security flaw allows an unauthenticated attacker to bypass login requirements and take over any user account, including administrator accounts. By gaining administrative access, an attacker could steal sensitive communications, modify system settings, or execute malicious code on the server, potentially leading to a full compromise of the organization's internal communications and data.

Technologies: [Rocket.Chat](https://junglewise.ai/threats/technologies/rocket-chat). Vendors: [Rocket.Chat](https://junglewise.ai/threats/vendors/rocket-chat).

## Quick answers

**Is CVE-2026-45689 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-45689 being exploited in the wild.

**How severe is CVE-2026-45689?** Critical severity, with a CVSS score of 9.1, published 24 June 2026.

**Which products and versions are affected?** Rocket.Chat < 8.5.0, < 8.4.1, < 8.3.3, < 8.2.3, < 8.1.4, < 8.0.5, < 7.13.7, < 7.10.11.

**Is there a fix for CVE-2026-45689?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-45689 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-45689?** Check whether you run Rocket.Chat at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A NoSQL injection vulnerability exists in the `/oauth/token` endpoint of Rocket.Chat due to improper validation of grant parameters. The application fails to ensure that `client_id`, `client_secret`, and `refresh_token` are strings before passing them to MongoDB `findOne()` queries. An unauthenticated attacker can provide MongoDB query operators (e.g., `{"$ne": null}`) in a JSON POST request to bypass client authentication and retrieve the first available refresh token from the database. By using operators like `$nin` or `$regex`, an attacker can iterate through the `oauth_access_tokens` collection to harvest access tokens for all users. If an administrator's token is retrieved, the attacker gains full API access, which can be leveraged for server-side code execution via the Apps-Engine. The issue is fixed in versions 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 products

- RocketChat Rocket.Chat < 8.5.0, < 8.4.1, < 8.3.3, < 8.2.3, < 8.1.4, < 8.0.5, < 7.13.7, < 7.10.11

## Timeline

- 2026-05-14: advisory: Original GitHub security advisory published
- 2026-06-24: disclosed: CVE published to NVD

## References

- [https://github.com/RocketChat/Rocket.Chat/security/advisories/GHSA-8p25-fm45-pjrw](https://github.com/RocketChat/Rocket.Chat/security/advisories/GHSA-8p25-fm45-pjrw)

## Related threats

- [Rocket.Chat sendForgotPasswordEmail method missing DDP rate limit](https://junglewise.ai/threats/cve-2026-75575-rocket-chat-sendforgotpasswordemail-method-missing-ddp-rate-limit)
- [Rocket.Chat Meteor DDP method authorization bypass](https://junglewise.ai/threats/cve-2026-65645-rocket-chat-meteor-ddp-method-authorization-bypass)
- [Rocket.Chat Omnichannel queue stored XSS via visitor name](https://junglewise.ai/threats/cve-2026-65644-rocket-chat-omnichannel-queue-stored-xss-via-visitor-name)
- [Rocket.Chat authentication bypass in SAML SSO](https://junglewise.ai/threats/cve-2026-58066-rocket-chat-authentication-bypass-in-saml-sso)
- [Rocket.Chat missing authorization in fingerprint REST endpoint](https://junglewise.ai/threats/cve-2026-55762-rocket-chat-missing-authorization-in-fingerprint-rest-endpoint)
