CVE-2018-8006
Description
Cross-site scripting vulnerability in Apache ActiveMQ's web admin console queue.jsp due to improper filtering of the QueueFilter parameter allows arbitrary JavaScript injection.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Cross-site scripting vulnerability in Apache ActiveMQ's web admin console queue.jsp due to improper filtering of the QueueFilter parameter allows arbitrary JavaScript injection.
Vulnerability
A cross-site scripting (XSS) vulnerability exists in the web-based administration console of Apache ActiveMQ versions 5.0.0 to 5.15.5. The issue is located in the queue.jsp page and is caused by improper data filtering of the QueueFilter parameter. When displaying the queue list, the QueueFilter parameter value is not properly encoded, allowing injection of arbitrary HTML and JavaScript [1][2].
Exploitation
An attacker can exploit this vulnerability by crafting a malicious URL with a QueueFilter parameter containing a JavaScript payload. The victim, typically an administrator with access to the web console, must visit this URL (e.g., via a phishing link). Upon loading the queue.jsp page, the injected script executes in the context of the victim's session on the ActiveMQ admin console [1][2].
Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the admin console. This can lead to session hijacking, theft of sensitive credentials or configuration data, defacement of the console interface, or further attacks against the ActiveMQ environment [1].
Mitigation
The vulnerability is fixed in ActiveMQ version 5.15.6 [3][4]. Users should upgrade to this version or later. For those unable to upgrade, the patches available in commits [3][4] can be applied to the source code and rebuilt. No workarounds are provided; immediate upgrade is recommended.
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.apache.activemq:activemq-web-consoleMaven | >= 5.0.0, < 5.15.6 | 5.15.6 |
Affected products
2Patches
2d8c80a98212e[AMQ-6954] encode the QueueFilter field value also
1 file changed · +1 −1
activemq-web-console/src/main/webapp/queues.jsp+1 −1 modified@@ -46,7 +46,7 @@ <div> <form action="queues.jsp" method="get"> <label name="destination">Queue Name Filter</label> - <input type="text" name="QueueFilter" value="${param.QueueFilter}"/> + <input type="text" name="QueueFilter" value="<c:out value='${param.QueueFilter}'/>"/> <input type="submit" value="Filter"/> </form>
2373aa1[AMQ-6954] encode the QueueFilter field value also
1 file changed · +1 −1
activemq-web-console/src/main/webapp/queues.jsp+1 −1 modified@@ -46,7 +46,7 @@ <div> <form action="queues.jsp" method="get"> <label name="destination">Queue Name Filter</label> - <input type="text" name="QueueFilter" value="${param.QueueFilter}"/> + <input type="text" name="QueueFilter" value="<c:out value='${param.QueueFilter}'/>"/> <input type="submit" value="Filter"/> </form>
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
24- github.com/advisories/GHSA-hvwm-2624-rp9xghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-8006ghsaADVISORY
- activemq.apache.org/security-advisories.data/CVE-2018-8006-announcement.txtghsax_refsource_CONFIRMWEB
- www.securityfocus.com/bid/105156mitrevdb-entryx_refsource_BID
- github.com/apache/activemq/commit/2373aa1ghsaWEB
- github.com/apache/activemq/commit/d8c80a98212ee5d73a281483a2f8b3f517465f62ghsaWEB
- issues.apache.org/jira/browse/AMQ-6954ghsaWEB
- lists.apache.org/thread.html/03f91b1fb85686a848cee6b90112cf6059bd1b21b23bacaa11a962e1%40%3Cdev.activemq.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/03f91b1fb85686a848cee6b90112cf6059bd1b21b23bacaa11a962e1@%3Cdev.activemq.apache.org%3EghsaWEB
- lists.apache.org/thread.html/2b5c0039197a4949f29e1e2c9441ab38d242946b966f61c110808bcc%40%3Ccommits.activemq.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/2b5c0039197a4949f29e1e2c9441ab38d242946b966f61c110808bcc@%3Ccommits.activemq.apache.org%3EghsaWEB
- lists.apache.org/thread.html/3f1e41bc9153936e065ca3094bd89ff8167ad2d39ac0b410f24382d2%40%3Cgitbox.activemq.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/3f1e41bc9153936e065ca3094bd89ff8167ad2d39ac0b410f24382d2@%3Cgitbox.activemq.apache.org%3EghsaWEB
- lists.apache.org/thread.html/a859563f05fbe7c31916b3178c2697165bd9bbf5a65d1cf62aef27d2%40%3Ccommits.activemq.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/a859563f05fbe7c31916b3178c2697165bd9bbf5a65d1cf62aef27d2@%3Ccommits.activemq.apache.org%3EghsaWEB
- lists.apache.org/thread.html/c0ec53b72b3240b187afb1cf67e4309a9e5f607282010aa196734814%40%3Cgitbox.activemq.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/c0ec53b72b3240b187afb1cf67e4309a9e5f607282010aa196734814@%3Cgitbox.activemq.apache.org%3EghsaWEB
- lists.apache.org/thread.html/fcbe6ad00f1de142148c20d813fae3765dc4274955e3e2f3ca19ff7b%40%3Cdev.activemq.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/fcbe6ad00f1de142148c20d813fae3765dc4274955e3e2f3ca19ff7b@%3Cdev.activemq.apache.org%3EghsaWEB
- lists.apache.org/thread.html/r946488fb942fd35c6a6e0359f52504a558ed438574a8f14d36d7dcd7%40%3Ccommits.activemq.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/r946488fb942fd35c6a6e0359f52504a558ed438574a8f14d36d7dcd7@%3Ccommits.activemq.apache.org%3EghsaWEB
- lists.apache.org/thread.html/rb698ed085f79e56146ca24ab359c9ef95846618675ea1ef402e04a6d%40%3Ccommits.activemq.apache.org%3Emitremailing-listx_refsource_MLIST
- lists.apache.org/thread.html/rb698ed085f79e56146ca24ab359c9ef95846618675ea1ef402e04a6d@%3Ccommits.activemq.apache.org%3EghsaWEB
- web.archive.org/web/20200227115717/http://www.securityfocus.com/bid/105156ghsaWEB
News mentions
0No linked articles in our index yet.