In July 2026, RabbitMQ fixed a bug that leaked its OAuth2 client secret to anyone who asked. The fix kept the secret on the server and added a proxy to use it. Four months later, that proxy is a critical advisory of its own, because it uses the secret on behalf of anyone who asks.
In short: the RabbitMQ OAuth2 vulnerability GHSA-cfvg-5q96-8mhm lets an unauthenticated caller who can reach the management port get a signed token, with scopes the caller picks, from the broker’s own identity provider client. Where that provider grants admin scopes, the result is full control of the management API and every virtual host. Upgrade to RabbitMQ 4.4.1 or 4.3.8.
- What is GHSA-cfvg-5q96-8mhm?
- How does the RabbitMQ OAuth2 vulnerability work?
- Who is affected by the RabbitMQ OAuth2 flaw?
- Why did a security fix create this bug?
- How does it compare with other RabbitMQ OAuth2 advisories?
- What else did RabbitMQ disclose on 27 November?
- How to detect exploitation of the RabbitMQ token proxy
- How to fix and mitigate it
- What is still unknown?
- The bottom line
- Sources
What is GHSA-cfvg-5q96-8mhm?
GHSA-cfvg-5q96-8mhm is a critical authentication bypass in the RabbitMQ management plugin, published on 27 November 2026 on the rabbitmq-server GitHub repository. Its title is “Unauthenticated OAuth2 token-endpoint proxy allows anonymous privileged token minting”. The advisory credits a researcher using the handle shanz0ng.
RabbitMQ is one of the most widely used open source message brokers. Applications use it to pass messages between services over protocols such as AMQP. The rabbitmq-server repository has about 14,000 GitHub stars and more than 4,000 forks, according to the GitHub API on 30 November 2026.
The advisory scores the flaw 9.1 under CVSS 4.0. The reporter suggested 9.8 under CVSS 3.1 and left the final score to the maintainers. The weakness is CWE-306, missing authentication for a critical function. A CVE was still pending on 30 November.
What is the RabbitMQ management plugin?
The management plugin serves RabbitMQ’s web UI and HTTP API, by default on port 15672 according to the RabbitMQ documentation. Administrators use it to create users, set permissions, and inspect or purge queues. Anyone with admin rights there controls the broker.
What is an OAuth2 token endpoint proxy?
An OAuth2 token endpoint is the identity provider (IdP) URL that exchanges a login code, a refresh token or client credentials for an access token. A proxy in front of it forwards those requests on someone else’s behalf. RabbitMQ added one so the browser-based management UI could finish logins without ever holding the client secret.
How does the RabbitMQ OAuth2 vulnerability work?
The flaw is a missing authentication check on one route. Everything else follows from what that route does with the request.
The unauthenticated route
The advisory points to a management route under /js/oidc-oauth/token-endpoint/, registered without an authentication context. Every other authenticated management resource implements an authorization callback. This handler did not, so any network peer could call it.
The injected secret
When a request arrives without a client secret, the proxy appends the configured management.oauth_client_secret before forwarding it to the IdP. Every other form parameter the caller sends, including the requested scope, is passed through unchanged. In the advisory’s words, the broker becomes a confidential OAuth2 client “on behalf of any anonymous network peer”.
A confidential client is an application trusted to keep a secret, so an IdP usually lets it request tokens directly, for example with the client credentials grant. That is the grant the reporter used.
One token, two planes
The minted token is a normal signed JWT (JSON Web Token), so RabbitMQ’s OAuth2 backend accepts it. The reporter showed it working on the management API and on the AMQP 0-9-1 listener, where the token is presented in the password field of a SASL PLAIN login. The advisory explains that audience validation only resolves a resource server and is not tied to the listener receiving the token.
What the researcher proved
On the official rabbitmq:4.4.0-management Docker image, the reporter documented four results, all listed in the advisory:
- A token minted with no credentials and no client secret.
- The management API confirming that token as an administrator.
- A new, persistent administrator account created with it.
- Full queue operations (declare, publish, consume, purge, delete) on every virtual host over AMQP.
This article does not reproduce the requests. The advisory itself is public and includes them, which is one more reason to patch quickly.
Who is affected by the RabbitMQ OAuth2 flaw?
Not every RabbitMQ broker is exposed. The advisory and Brandefense describe three conditions that must all be true.
| Condition | Why it matters |
|---|---|
| Version 4.4.0, 4.3.3 to 4.3.7, or 4.2.9 to 4.2.12 | Earlier releases do not have the proxy |
Management OAuth2 login enabled with management.oauth_client_secret set |
Without a secret, the proxy has nothing to inject |
| IdP grants the management client admin scopes | Decides whether the token is admin or limited |
The third condition is set at the identity provider, not in RabbitMQ. The advisory notes that the reference setups in RabbitMQ’s own OAuth2 guide grant administrator scopes, and that the vulnerable configuration is the documented one, not a misconfiguration.
How common is the client secret setup?
Probably uncommon. The pull request that added the proxy described the client secret flow as used by “a minority of deployments”, and in practice with one identity provider. RabbitMQ’s management documentation says the UI is a public app that normally needs no secret, and names UAA as a provider that does. No source gave a count of exposed brokers.
How to check your exposure
- Check the version on each node; the
rabbitmqctl versioncommand prints it. - Search
rabbitmq.confand any configuration management templates formanagement.oauth_client_secret. - Check which scopes your IdP grants to the management client, and whether client credentials or password grants are allowed for it.
- Check whether port 15672 (or 15671 for HTTPS) is reachable from untrusted networks.
If step 2 finds nothing, this advisory does not apply to that broker. The other 27 November advisories may still apply.
Why did a security fix create this bug?
Because the proxy was the fix for an earlier secret leak. The timeline comes from rabbitmq-server releases, pull requests and advisories.
On 23 July 2026, RabbitMQ published GHSA-f9f2-q3jf-wfj3, rated high (CVSS 4.0 8.2). It said the configured client secret was embedded in JavaScript served by an unauthenticated endpoint, /js/oidc-oauth/bootstrap.js. Anyone who could reach the management port could read it.
The fix was pull request #16892, merged on 9 July. Its description says it keeps the client secret on the server and passes it to the IdP, with RabbitMQ acting as the HTTPS client. It shipped in 4.3.3 on 20 July, the release whose notes describe “a new token endpoint proxy”. 4.2.9, the first affected 4.2 release, also came out on 20 July.
The first bug handed out the secret. The second kept the secret hidden but let anyone use it. The July advisory’s handler and the November one share the same root cause: neither implemented the authorization callback.
How long were brokers exposed?
From 4.3.3 on 20 July to 4.3.8 on 16 November is 119 days. The fix, pull request #17937, was merged on 22 October, according to the advisory and GitHub, and released 25 days later. It restricts the proxy to the authorization_code and refresh_token grants, the two a browser login actually needs.
The 4.4.1 release notes do not mention the fix. Operators who skip maintenance releases with no flagged security content would have had no reason to rush 4.4.1 until the advisory appeared on 27 November.
How does it compare with other RabbitMQ OAuth2 advisories?
It is the most severe in a run of OAuth2 issues in RabbitMQ in 2026. All entries below come from the rabbitmq-server advisory list on GitHub.
| Published | Advisory | Severity | Issue |
|---|---|---|---|
| 22 Jul 2026 | GHSA-rrj4-g94f-rqj9 | Medium | Expiry check skipped for fractional exp values |
| 23 Jul 2026 | GHSA-f9f2-q3jf-wfj3 | High (8.2) | Client secret served by unauthenticated JavaScript |
| 18 Aug 2026 | GHSA-6256-27fm-4rgr | Medium | Stored HTML injection in OAuth error handling |
| 18 Sep 2026 | GHSA-j6hc-926v-qwq2 | Medium | STOMP consumers keep access after JWT expiry |
| 25 Oct 2026 | GHSA-6wvj-vwrc-wcrm | Medium | HTML injection in OAuth login warning |
| 27 Nov 2026 | GHSA-6q46-pxw7-rfv2 | Low (2.3) | Auth cache accepts expired JWTs |
| 27 Nov 2026 | GHSA-cfvg-5q96-8mhm | Critical (9.1) | Anonymous token minting via proxy |
The pattern is that OAuth2 code paths, which few deployments use, keep producing bugs. If you run the OAuth2 management login, treat each RabbitMQ release as security relevant.
There is also an Erlang link. RabbitMQ runs on Erlang/OTP, which had its own critical TLS client flaw this month; our Erlang/OTP CVE-2026-124286 explainer covers which OTP versions to run underneath RabbitMQ. The same ecosystem’s package registry was also breached, as described in our Hex.pm breach analysis.
What else did RabbitMQ disclose on 27 November?
Seven rabbitmq-server advisories went public the same day. Most are fixed in the same releases, so one upgrade covers them.
The CSRF bug in the management API
GHSA-c22p-g5xq-x5jm (high, CVSS 4.0 7.6) affects every supported line from 3.13 to 4.4.0. Cross-site request forgery (CSRF) means a malicious website makes a logged-in user’s browser send requests to another site. The advisory says the HTTP API used Basic authentication without anti-CSRF tokens and accepted state-changing requests sent as text/plain, which avoids the browser’s CORS preflight check. The 4.4.1 notes say JSON endpoints now require an application/json content type.
The smaller issues
- GHSA-hqjp-fc45-wj4f (medium): the LDAP backend inserts usernames into authorization regular expressions without escaping, so a crafted username can widen its own access.
- GHSA-4965-vg44-xv63 (medium): an AMQP 1.0 client can store a message annotation that crashes later consumers and can stop dead-lettering. The advisory credits Anthropic’s OSS Scanner.
- GHSA-6q46-pxw7-rfv2 (low): with the auth cache plugin in front of OAuth2, an expired JWT keeps working until the cache entry expires, 15 seconds by default.
- GHSA-8c56-38wg-g99q (low): dead-lettering can route a message to a topic the user is not allowed to publish to.
- GHSA-w4p7-ffvp-qv8g (low): predictable direct reply-to keys; fixed earlier, in 4.3.7 and 4.2.12.
How to detect exploitation of the RabbitMQ token proxy
The advisory does not explain how to tell whether tokens were already minted, as The Hacker News pointed out. These checks follow from how the flaw works.
Log sources to check
- Management HTTP access logs: look for POST requests to paths under
/js/oidc-oauth/token-endpoint/that are not part of a browser login, especially from scripts, unusual user agents or unexpected IP ranges. - Identity provider logs: look for token requests for the management client that use the client credentials or password grant, or ask for broad scopes. The advisory notes these requests come from the broker’s own IP address, so check volume and timing rather than source.
- RabbitMQ user list: list internal users and compare against your inventory. An attacker’s persistent admin account survives the upgrade.
- AMQP connection logs: look for clients authenticating with a JWT in the password field from hosts that do not normally connect, and for queue purges or deletions nobody planned.
ATT&CK mapping
The advisory publishes no MITRE ATT&CK mapping. Our own mapping of the documented behaviour: T1190 (Exploit Public-Facing Application) for the token request, T1136 (Create Account) for the persistent admin user, and T1078 (Valid Accounts) for later logins with minted tokens or that account.
How to fix and mitigate it
In priority order:
- Upgrade. Move to RabbitMQ 4.4.1 or 4.3.8. On 4.2, community support ended on 31 July 2026 per the release information page, and 4.2.13 is listed as enterprise support only. Plan a move to a supported line.
- If you cannot upgrade now, remove
management.oauth_client_secretor put authentication in front of the management port, as the advisory suggests. Test login afterwards, because some providers need the secret. - Audit users. Remove any administrator account you cannot account for, then rotate credentials for accounts that touched the broker.
- Review the IdP client. Disable the client credentials and password grants for the management client if the UI does not need them, and narrow the scopes it can receive.
- Rotate the client secret at the IdP, especially if you ran a version affected by the July leak before 4.3.3.
- Restrict the management port to an admin network or VPN. RabbitMQ’s own documentation recommends Prometheus over the built-in UI for production monitoring.
- Watch the OAuth2 code path. Subscribe to the rabbitmq-server advisories so the next one does not arrive unnoticed.
If you also store API secrets in managed gateways, our Azure API Management vulnerability guide covers a similar question of when a fix is not enough and rotation is required.
What is still unknown?
- Exposure size. No source counted internet-facing brokers using the client secret flow. Brandefense said its own product-name counts do not establish exploitation.
- Exploitation. None reported, but no source described a way to rule it out retroactively.
- CVE and score. The CVE is pending, and the reporter’s 9.8 differs from the advisory’s 9.1. The final score could change.
- Related reports. The advisory says two related observations from the same report, about fabricated code or refresh token relays and an issuer check, were triaged separately. Their status is not public.
- Silent fixes. The fix shipped 11 days before disclosure without a release note. The sources do not say why.
The bottom line
The RabbitMQ OAuth2 vulnerability is narrow but severe: only brokers with a management client secret are exposed, and on those, anyone who reaches port 15672 can become an administrator. It exists because the July fix for a leaked secret moved the secret behind a proxy that forgot to check who was calling. Upgrade to 4.4.1 or 4.3.8, then check for admin accounts you did not create.
Sources
- GitHub advisory GHSA-cfvg-5q96-8mhm (rabbitmq-server)
- GitHub advisory GHSA-f9f2-q3jf-wfj3, OAuth2 client secret exposure
- GitHub advisory GHSA-c22p-g5xq-x5jm, management API CSRF
- rabbitmq-server pull request #16892
- rabbitmq-server pull request #17937
- RabbitMQ 4.4.1 release notes
- RabbitMQ 4.3.3 release notes
- RabbitMQ security page
- RabbitMQ release information
- RabbitMQ management plugin documentation
- RabbitMQ OAuth 2.0 documentation
- The Hacker News: Critical RabbitMQ OAuth2 flaw could grant admin access
- Brandefense: RabbitMQ OAuth2 proxy flaw, fixed versions
This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.