Skip to main content
Mallory
Medium

HTTP Header Injection / XSS in Apache ActiveMQ MessageServlet

IdentifiersCVE-2026-42253CWE-79· Improper Neutralization of Input…

CVE-2026-42253 is an input neutralization flaw in Apache ActiveMQ and Apache ActiveMQ Web affecting the web console API MessageServlet. The servlet copies JMS message properties directly into HTTP response headers without validation or sanitization. Because attacker-controlled JMS message properties can be reflected into response headers, an attacker can overwrite or inject security-relevant headers in responses generated by the servlet. The issue is described as a cross-site scripting vulnerability and affects Apache ActiveMQ and Apache ActiveMQ Web before 5.19.7, and versions 6.0.0 through 6.2.5.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows manipulation of HTTP response headers returned by the MessageServlet, including overwriting or injecting browser security headers. Reported consequences include cross-site scripting against users of the ActiveMQ web console/API, response manipulation, weakening of protections such as CSP, X-Frame-Options, and HSTS, and follow-on impacts such as clickjacking or session hijacking in affected deployments.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, disable or avoid use of the deprecated MessageServlet, restrict access to the ActiveMQ web console/API to trusted networks and users only, and reduce exposure of any workflow that returns attacker-influenced JMS message properties through the servlet.

Remediation

Patch, then assume compromise.

Upgrade Apache ActiveMQ and Apache ActiveMQ Web to 5.19.7 or 6.2.6 or later. Apache fixed the issue by deprecating the MessageServlet and disabling it by default in patched releases.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Apache Software FoundationActivemqapplication
Apache Software FoundationActivemq Webapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity6

Community discussion across Reddit, Mastodon, and other social sources.