Critical Apache ActiveMQ Flaw Enables Security Header Injection

Apache has disclosed two important-severity vulnerabilities in Apache ActiveMQ and ActiveMQ Web, both patched on May 31, 2026, and tracked as CVE-2026-42253 and CVE-2026-49157.

The dual disclosures arrive as Apache ActiveMQ continues to face intense scrutiny following a wave of serious Jolokia-related vulnerabilities in 2026. Both flaws affect the same version ranges and are remediated by the same patch releases.

The first and more impactful vulnerability, CVE-2026-42253, is classified as an Improper Neutralization of Input During Web Page Generation (XSS) flaw and carries a CVSS v3.1 base score of 8.8 (High).

Critical Apache ActiveMQ Flaw

The root cause lies in the MessageServlet component of the ActiveMQ web console API, which copies every JMS message property directly into HTTP response headers without any input validation.

By crafting JMS messages with specially named properties, an attacker can overwrite or inject critical HTTP security headers such as Content-Security-Policy, X-Frame-Options, or Set-Cookie into responses returned to web console users.

This header injection vector enables a chain of client-side attacks, including cross-site scripting (XSS), session hijacking, and clickjacking against web console administrators.

The vulnerability was independently discovered by four researchers: Vishal Shukla, pyn3rd, uname, and 4ra1n, with pyn3rd confirming the CVE on June 1, 2026.

The second flaw, CVE-2026-49157, is an Incorrect Default Permissions vulnerability, also scoring CVSS 8.8 with vector. AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

The Jolokia JMX-over-HTTP bridge bundled with ActiveMQ granted non-admin, low-privilege web login accounts access to broker management operations that should be restricted to administrators.

Any authenticated low-privilege user could invoke sensitive Jolokia operations, including addQueue and removeQueue, directly manipulating the broker’s message-routing infrastructure.

This default misconfiguration is particularly dangerous in multi-tenant deployments where untrusted users share access to the web console.

Security researcher Leon Johnson is credited with discovering and responsibly disclosing this issue. The fix enforces strict Jolokia authorization, preventing low-privilege accounts from invoking admin-scoped MBean operations.

Earlier in the year, CVE-2026-34197, a 13-year-old RCE vulnerability discovered with AI assistance, allowed authenticated attackers to load remote Spring XML configurations via crafted Jolokia URIs, resulting in arbitrary code execution on the broker’s JVM.

CISA subsequently added CVE-2026-34197 to its Known Exploited Vulnerabilities (KEV) catalog, with over 6,400 internet-exposed ActiveMQ servers found vulnerable by Shadowserver.

Affected Versions

ComponentVulnerable RangeFixed Version
Apache ActiveMQ< 5.19.75.19.7
Apache ActiveMQ6.0.0 – 6.2.56.2.6
Apache ActiveMQ Web< 5.19.75.19.7
Apache ActiveMQ Web6.0.0 – 6.2.56.2.6

Mitigation

Apache strongly urges all administrators to upgrade immediately to version 5.19.7 or 6.2.6, which resolve both vulnerabilities. Until patching is complete, security teams should apply the following mitigations:

  • Restrict web console access to trusted management networks only; the console runs on port 8161 by default
  • Audit Jolokia authorization configurations and restrict low-privilege accounts from exec-level MBean operations
  • Turn off the MessageServlet if not operationally required, or apply the default-disabled setting included in patched releases
  • Enforce strong, non-default credentials; default admin:admin credentials remain prevalent across many deployments

Given ActiveMQ’s broad deployment across enterprise messaging and its documented history of being targeted by ransomware operators and initial access brokers, both CVEs should be treated as priority patching targets with zero delay tolerance.

Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google.

Tamilselvan
Tamilselvanhttps://cyberpress.org/
Tamilselvan is an Investigative cybersecurity journalist dedicated to breaking stories on ransomware cartels, data breaches, and state-sponsored espionage.

Trending News

Related Stories