RabbitMQ rabbitmq-server exposes OAuth2 client secret through unauthenticated JavaScript endpoint

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-67410?

CVE-2026-67410 is a vulnerability classified as Exposure of Sensitive Information to an Unauthorized Actor, affecting rabbitmq-server (affected versions: >= 4.3.0, < 4.3.3 and >= 4.2.0, < 4.2.9). This vulnerability is rated High, with a CVSS score of 8.2. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

RabbitMQ is a messaging and streaming broker. From 4.2.0 until 4.3.3 and 4.2.9, OAuth2 Client Secret Exposed via Unauthenticated JavaScript Endpoint (CWE-200). when OAuth2 authentication is enabled for the RabbitMQ Management UI and the configured flow, IDP use a client secret, the oauthclientsecret configuration value is included in the JavaScript served by the unauthenticated endpoint /js/oidc-oauth/bootstrap.js. Any user who can reach the management UI port can retrieve the OAuth2 client secret without Files: deps/rabbitmqmanagement/src/rabbitmgmtwmauth.erl, line 186 deps/rabbitmqmanagement/src/rabbitmgmtoauthbootstrap.erl, lines 35-50 deps/rabbitmqmanagement/src/rabbitmgmtdispatcher.erl, lines 45-49 (route registration) Code Path: 1. The route /js/oidc-oauth/bootstrap.js is registered as a plain Cowboy handler (rabbitmgmtdispatcher.erl:46): Credential exposure for the affected configuration: OAuth2 client secret is accessible without any authentication Token theft: Attacker can complete the authorization code flow using stolen authorization codes Client impersonation: Attacker can make requests. Any RabbitMQ deployment with: This issue is fixed in versions 4.3.3 and 4.2.9.

Affected products and scope

The confirmed affected ranges for RabbitMQ vendor rabbitmq-server are:

  • 4.3.x branch: versions >= 4.3.0, < 4.3.3 are affected.
  • 4.2.x branch: versions >= 4.2.0, < 4.2.9 are affected.
  • Configuration condition: the RabbitMQ Management UI is enabled, OAuth2 authentication is enabled, and management.oauth_client_secret is configured for a flow that uses a client secret.
  • The confirmed patched releases are 4.3.3 for the 4.3.x branch and 4.2.9 for the 4.2.x branch. The available evidence does not establish the status of other branches.

Technical details

rabbitmq-server includes OAuth2 configuration data in JavaScript served by the RabbitMQ Management UI. When rabbitmq_management is enabled, OAuth2 authentication is enabled, and management.oauth_client_secret is configured, the route /js/oidc-oauth/bootstrap.js is registered as a plain Cowboy handler without an authorization check. The rabbit_mgmt_oauth_bootstrap handler calls authSettings() and embeds the result in JavaScript; that data includes oauth_client_secret. Exploitation requires network reachability to the management UI port and a deployment using an OAuth2 flow that requires a client secret, but it does not require a prior RabbitMQ account. The advisory identifies rabbit_mgmt_dispatcher, rabbit_mgmt_oauth_bootstrap, and rabbit_mgmt_wm_auth as relevant components; the available evidence does not identify a specific OAuth2 provider or the scopes granted in each deployment.

Exploitability

The issue is reachable over the network from any location that can connect to the management UI port. Retrieving the secret requires no authentication or user interaction because the JavaScript endpoint is unauthenticated. The vendor advisory documents direct retrieval from the endpoint response and describes possible use of the secret with stolen authorization codes to complete the authorization code flow, impersonate the management UI client, or reach additional scopes when supported by the identity provider. The supplied record marks public exploit material as available, but it does not identify a specific campaign or confirmed real-world abuse against a named deployment.

Technical impact

The direct technical outcome is that an OAuth2 client secret is sent to an unauthenticated requester, compromising the confidentiality of that credential. Possession of the secret does not by itself prove RabbitMQ access, but it may support management UI client impersonation or authorization-code exchange when the attacker also obtains a suitable code. If the client has broader scopes than the Management UI requires, the accessible data or resources may be broader than intended. The available evidence does not show that the flaw directly causes RabbitMQ availability loss or automatically changes RabbitMQ data.

Business impact

The OAuth client secret used by the RabbitMQ Management UI can be disclosed to an unauthorized party without a RabbitMQ login. Depending on the client permissions and scopes, an attacker may be able to send requests to the identity provider as the management UI client or access resources granted to that client. This creates a credential-confidentiality risk and can extend the incident into systems integrated with the identity provider. The actual business impact depends on the configured OAuth2 flow, whether authorization codes can also be obtained, and the scopes assigned in the environment.

Remediation

  1. Upgrade affected 4.3.x deployments to 4.3.3; for the affected 4.2.x branch, upgrade to 4.2.9. These are the branch-specific patched releases confirmed by the vendor advisory.
  2. If an upgrade is not immediately possible, avoid using an OAuth2 flow that requires a client secret for the Management UI.
  3. As vendor workarounds, disable rabbitmq_management and use the Prometheus plugin for monitoring, or switch from rabbitmq_auth_backend_oauth2 to another supported authentication and authorization backend.
  4. Because the secret may have been served to an unauthenticated requester, treat it as potentially exposed and coordinate credential rotation or revocation with the identity provider. Update RabbitMQ configuration afterward and verify that the endpoint no longer returns the secret.

Detection

  1. Inventory rabbitmq-server instances and identify those using the RabbitMQ Management UI.
  2. Check their configuration for management.oauth_enabled = true and management.oauth_client_secret.
  3. From an authorized test system, verify whether an unauthenticated request to /js/oidc-oauth/bootstrap.js returns JavaScript containing oauth_client_secret. Do not record or distribute the secret value during testing.
  4. Review access or reverse-proxy logs for requests to this endpoint. This is precautionary monitoring, not a vendor-confirmed indicator of compromise.
  5. If the configuration may have been accessed, review identity-provider logs for unexpected activity involving the OAuth client. The absence of matching log evidence does not prove that the secret was not exposed.
Sources (23)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.