Skip to content
Medium 5.7

HTML injection in management UI OAuth login warning

GHSA-6wvj-vwrc-wcrm First seen on SecPulse

Summary

Affected product

RabbitMQ — rabbitmq_management plugin, OAuth 2.0 login status rendering

Summary

The CVE-2026-67421 fix renamed the login_oauth.ejs template variable to escaped_warnings, establishing a contract that callers pre-escape, and added fmt_escape_html at the call sit...

Affected packages

PackageAffected → Fixed
rabbitmqrabbitmq-server
>= 3.13.0, < 3.13.21→ 3.13.21
rabbitmqrabbitmq-server
>= 4.1.0, < 4.1.17→ 4.1.17
rabbitmqrabbitmq-server
>= 4.2.0, < 4.2.12→ 4.2.12
rabbitmqrabbitmq-server
>= 4.3.0, < 4.3.7→ 4.3.7
Original description The description as published by the source.

Affected product

RabbitMQ — rabbitmq_management plugin, OAuth 2.0 login status rendering

Summary

The CVE-2026-67421 fix renamed the login_oauth.ejs template variable to escaped_warnings, establishing a contract that callers pre-escape, and added fmt_escape_html at the call sites. One caller was missed: check_bad_response still passes the server-supplied reason unescaped on the 401/403 OAuth branch, four lines above a sibling branch that escapes the same value. The sink is unchanged — login_oauth.ejs renders <%=escaped_warnings[i]%>, and <%= does not auto-escape in this codebase's EJS engine.

The advisory's defense-in-depth recommendation, base-uri 'none' in the default CSP, was also not applied, so the `` injection that made CVE-2026-67421 reach credential theft still works.

Note on tooling: this report was prepared with AI assistance (Claude Code). The analysis and the proposed fix were reviewed by the submitter before filing.

Affected code

  • deps/rabbitmq_management/priv/www/js/main.js → check_bad_response, initiate_logout(oauth, reason) on the (req.status == 401 || req.status == 403) && oauth.enabled branch. initiate_logout/2 has that single caller, and it is the only unescaped path into the sink: the other callers of renderWarningMessageInLoginStatus pass either an fmt_escape_html-wrapped value (main.js:29) or a literal (main.js:132 on all affected branches, plus main.js:149 on main).
  • `deps/rabbitmq_management/…

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details