# CVE-2026-66077: RabbitMQ: Stored XSS via TLS peer-certificate DN in management UI

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

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-79
- **Published:** 2026-09-23T20:03:42.797Z
- **Modified:** 2026-10-19T20:37:37.347Z

## Who should check

- Anyone running rabbitmq-server \>= 3.13.0, \< 3.13.15; \>= 4.0.0, \< 4.0.20; \>= 4.1.0, \< 4.1.11; \>= 4.2.0, \< 4.2.6

## Description

RabbitMQ is a messaging and streaming broker. Prior to versions 3.13.15, 4.0.20, 4.1.11, and 4.2.6, The management UI uses EJS 1.0 in which \<%= ... %\> does NOT HTML-escape. connection.ejs:135 renders \<%= connection.ssl\_details.peer\_cert\_subject %\> (and peer\_cert\_issuer) directly into the page. The same pattern appears in streamConnection.ejs:102,106,110. The values come from rabbit\_ssl:peer\_cert\_subject/1 which formats the DN as a string without HTML escaping. The verifier corrected the original researcher's claim: this is reachable only when the listener is configured with verify\_peer (so the certificate must be signed by a CA in the broker's trust store, not arbitrary self-signed); however, in deployments using mTLS for client authentication, any user who can request a certificate from the organisational CA controls the Subject CN. An attacker who can obtain a TLS client certificate signed by a CA the broker trusts (with verify\_peer enabled) can embed JavaScript in the certificate's Subject DN. When any administrator views that connection in the management UI, the script executes in the admin's browser session, allowing full account takeover (create users, export definitions, etc.). The management UI's CSP includes 'unsafe-inline', so inline script execution is not blocked. Preconditions include TLS listener configured with ssl\_options.verify = verify\_peer Attacker can obtain a CA-signed client certificate with attacker-chosen Subject (e.g. self-service corporate PKI, or rabbitmq\_trust\_store plugin in use) Administrator views the connection detail page. This issue is fixed in versions 3.13.15, 4.0.20, 4.1.11, and 4.2.6.

## Affected and fixed versions

- rabbitmq-server: \>= 3.13.0, \< 3.13.15; \>= 4.0.0, \< 4.0.20; \>= 4.1.0, \< 4.1.11; \>= 4.2.0, \< 4.2.6 (cvelist)

## Mitigation

- Upgrade rabbitmq-server to 4.2.6 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-66077. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-66077.md
Affected: rabbitmq-server >= 3.13.0, < 3.13.15; >= 4.0.0, < 4.0.20; >= 4.1.0, < 4.1.11; >= 4.2.0, < 4.2.6
Fixed in: rabbitmq-server 3.13.15, rabbitmq-server 4.0.20, rabbitmq-server 4.1.11, rabbitmq-server 4.2.6

Steps:
1. Search this machine and project for rabbitmq-server: 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-66077 being exploited?

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

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

High: CVSS 7.3 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

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

rabbitmq-server \>= 3.13.0, \< 3.13.15; \>= 4.0.0, \< 4.0.20; \>= 4.1.0, \< 4.1.11; \>= 4.2.0, \< 4.2.6.

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

Yes. Fixed in rabbitmq-server 3.13.15, rabbitmq-server 4.0.20, rabbitmq-server 4.1.11, rabbitmq-server 4.2.6. Upgrade rabbitmq-server to 4.2.6 or later.

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

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/rabbitmq/rabbitmq-server/security/advisories/GHSA-rjcf-35r5-xw38>
- other: <https://github.com/rabbitmq/rabbitmq-server/releases/tag/v4.2.6>

## 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-66077>

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