Description
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Apache ActiveMQ, Apache ActiveMQ Web.

The MessageServlet in the ActiveMQ web console API copies every JMS message
property into an HTTP response header without any validation. This can allow overwriting and injecting security headers by setting them on JMS messages that are returned by the servlet.

This issue affects Apache ActiveMQ: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ Web: before 5.19.7, from 6.0.0 before 6.2.6.

Users are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue. The MessageServlet has now been deprecated and disabled by default.
Published: 2026-06-01
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows an attacker to set arbitrary JMS message properties that are copied verbatim into HTTP response headers by the MessageServlet. This can overwrite security headers or inject malicious content, resulting in cross‑site scripting or other header‑based attacks. If exploitable, the attacker could gain JavaScript execution in a victim’s browser or manipulate response headers for malicious purposes.

Affected Systems

Apache ActiveMQ and Apache ActiveMQ Web versions prior to 5.19.7 and before 6.2.6 are affected. Versions 5.19.7 and 6.2.6 contain the fix and deprecate the MessageServlet, which is disabled by default in newer releases.

Risk and Exploitability

The flaw can be triggered by an attacker who can create or modify JMS messages that are served through the web console’s MessageServlet, providing a remote attack vector. The EPSS score of less than 1% indicates a low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The CVSS score of 6.1 reflects a moderate severity, but the ability to override security headers can facilitate cross‑site scripting or other header‑based attacks, so the risk remains significant.

Generated by OpenCVE AI on June 1, 2026 at 15:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Apache ActiveMQ to version 5.19.7 or 6.2.6, which removes the vulnerable code and disables the MessageServlet by default.
  • Verify that the MessageServlet is disabled or removed from configuration, ensuring no legacy servlet instance can process JMS message properties.
  • Restrict access to the message queues used by the web console so that only trusted producers can set message properties, and audit any custom properties that could affect HTTP response headers.

Generated by OpenCVE AI on June 1, 2026 at 15:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 01 Jun 2026 17:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:activemq_web:*:*:*:*:*:*:*:*

Mon, 01 Jun 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 01 Jun 2026 12:30:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache activemq
Apache activemq Web
Vendors & Products Apache
Apache activemq
Apache activemq Web

Mon, 01 Jun 2026 09:30:00 +0000

Type Values Removed Values Added
References

Mon, 01 Jun 2026 09:15:00 +0000

Type Values Removed Values Added
Description Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Apache ActiveMQ, Apache ActiveMQ Web. The MessageServlet in the ActiveMQ web console API copies every JMS message property into an HTTP response header without any validation. This can allow overwriting and injecting security headers by setting them on JMS messages that are returned by the servlet. This issue affects Apache ActiveMQ: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ Web: before 5.19.7, from 6.0.0 before 6.2.6. Users are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue. The MessageServlet has now been deprecated and disabled by default.
Title Apache ActiveMQ, Apache ActiveMQ Web: HTTP Response Header Injection via JMS Message Properties
Weaknesses CWE-79
References

Subscriptions

Apache Activemq Activemq Web
cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-06-03T09:25:55.984Z

Reserved: 2026-04-25T19:48:04.140Z

Link: CVE-2026-42253

cve-icon Vulnrichment

Updated: 2026-06-01T07:47:36.520Z

cve-icon NVD

Status : Analyzed

Published: 2026-06-01T09:16:18.673

Modified: 2026-06-01T17:06:34.850

Link: CVE-2026-42253

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-01T15:30:31Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')