# RabbitMQ's OAuth2 token proxy lent the broker's client secret to anonymous callers

Source: https://startwithidentity.com/cves/cve-2026-144233/
Last updated: 2026-12-04
License: content by Start with Identity. Cite the source URL.

---

## What broke

RabbitMQ advisory GHSA-cfvg-5q96-8mhm, published November 27, 2026, received CVE-2026-144233 on December 3. The management plugin exposes an OAuth2 token-endpoint proxy at `/js/oidc-oauth/token-endpoint/<resource-server-id>` that has no caller authentication: the module does not implement the `is_authorized/3` check every other management resource has. It forwards the request body to the identity provider's token endpoint and appends the configured `management.oauth_client_secret` when the caller did not send one, passing `scope` and other parameters through unchanged.

An anonymous POST with `grant_type=client_credentials` (or `password`) therefore comes back with an IdP-signed [JWT](https://startwithidentity.com/glossary/jwt/) carrying the scopes the attacker asked for, if the provider grants them. The broker accepts that token on the management API and, as the SASL PLAIN password, on the AMQP 0-9-1 listener. NVD lists the VulnCheck CNA scores (CVSS 4.0 9.1, CVSS 3.1 7.4) and CWE-306 (missing authentication for a critical function). Affected: 4.2.9 to 4.2.12, 4.3.3 to 4.3.7 and 4.4.0. Fixed: 4.2.13, 4.3.8 and 4.4.1, which only relay `authorization_code` and `refresh_token` grants. No exploitation has been reported.

## Why it matters

A [client secret](https://startwithidentity.com/glossary/client-credentials/) proves the caller is the registered client. Here the broker handed its secret to whoever asked, so the IdP issued tokens to strangers in the broker's name, and nothing in the IdP logs separates those requests from the broker's own. How much an attacker gets depends on what the IdP lets that client request: setups that follow the reference guides and grant administrator [scopes](https://startwithidentity.com/glossary/scope/) give out admin tokens. The same release fixed two smaller OAuth and LDAP flaws: cached OAuth2 JWTs accepted after expiry (CVE-2026-144238) and unescaped usernames in LDAP access query regexes (CVE-2026-144237).

## What to do

- Upgrade to 4.4.1, 4.3.8 or 4.2.13.
- If you cannot, remove `management.oauth_client_secret` or put authentication in front of the management port.
- In the IdP, allow the RabbitMQ client only the authorization code flow with PKCE and only the scopes the management UI needs.

## After you patch

- Review IdP logs for client_credentials or password grants issued to the RabbitMQ client, and list management users and permissions created since the affected versions were deployed; patching does not remove them.
- Rotate the broker's client secret if the management port was reachable from untrusted networks.

## Sources

- [NVD: CVE-2026-144233](https://nvd.nist.gov/vuln/detail/cve-2026-144233)
- [RabbitMQ advisory GHSA-cfvg-5q96-8mhm](https://github.com/rabbitmq/rabbitmq-server/security/advisories/GHSA-cfvg-5q96-8mhm)
- [VulnCheck advisory](https://www.vulncheck.com/advisories/rabbitmq-4.4.0-authentication-bypass-via-oauth2-token-endpoint-proxy)
- [Fix commit](https://github.com/rabbitmq/rabbitmq-server/commit/cf3a94c761a36b7cb6cab6904d4723b7571d6bf0)
- [SWI news: RabbitMQ OAuth2 proxy flaw let anonymous callers mint admin tokens](https://startwithidentity.com/blog/2026-11-27-rabbitmq-oauth2-proxy-flaw-let-anonymous-callers-mint-admin-tokens-with-the-brokers-client-secret/)
