The CVSS 7.3 score assigned to this vulnerability is misleading. It treats 'obtain a CA-signed certificate' as a meaningful barrier, but in modern mTLS deployments this is often trivially satisfiable through legitimate self-service PKI infrastructure — meaning the practical exploitability is far higher than the score suggests.
The rabbitmq_trust_store plugin is the critical detail the CVSS underweights. This plugin explicitly enables dynamic trust store management, allowing operators to configure RabbitMQ to accept certificates from external sources at runtime. When your tooling makes it easy to configure external trust stores, you're expanding the population of deployments where an internal attacker — even a low-privilege corporate account holder — can request a CA-signed certificate with attacker-controlled Subject DN fields. The DN format is flexible enough to accommodate JavaScript payloads through careful encoding, and the EJS 1.0 template engine's failure to escape these fields means every certificate field rendered in the management UI becomes a potential XSS vector.
The vulnerable code spans four template locations across two files, which indicates copy-paste rather than a single oversight. This pattern matters because homogeneity in vulnerable code is a false signal during code review — identical-looking code reinforces reviewer confidence rather than raising suspicion.
Separate from the patch: the management UI's Content-Security-Policy contains 'unsafe-inline', which is a systemic security posture failure rather than a contributing factor to this specific vulnerability. It represents a defense-in-depth gap that would enable exploitation of any future XSS, even after this patch. You should distinguish between the immediate remediation (escaping certificate fields) and the residual risk (a CSP that offers no protection against template injection).
The EJS 1.0 dependency itself warrants attention — it was last meaningfully maintained around 2015 and has known behavioral differences from EJS 3.x around auto-escaping. The version choice is technical debt that functions as a security posture decision.
What you should do: verify that the four certificate-field template locations in your RabbitMQ management UI have been patched (rabbitmq-management/src/templates.httpreport_ejs_enterprise and related paths, if applicable). Audit other certificate-derived fields rendered in the UI for the same unescaped pattern. Treat the CSP finding as a separate remediation item — removing 'unsafe-inline' is a different engineering effort than patching the XSS vector, but both are necessary for a complete hardening.