CVE-2018-1000129: Cross-site Scripting in Jolokia agent

org.jolokia:jolokia-core Updated 02 Oct 2025

Summary

14/05/2022
Yes i
Moderate
6.1

CVE-2018-1000129: Cross-site Scripting in Jolokia agent. Affects org.jolokia:jolokia-core versions >= 1.3.7, < 1.5.0. Fixed in 1.5.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Jolokia agent is a Java library that provides an HTTP/JSON interface for remote JMX access. It allows users to interact with JMX MBeans (Managed Beans) over HTTP using JSON. The agent is commonly used in Java applications to monitor and manage JMX resources. However, version 1.3.7 of the Jolokia agent is vulnerable to a cross-site scripting (XSS) attack. This vulnerability exists in the HTTP servlet and can be exploited by an attacker to execute malicious JavaScript code in the victim's browser.

Vulnerability Detail

The XSS vulnerability in the Jolokia agent version 1.3.7 allows an attacker to inject and execute arbitrary JavaScript code in the context of the victim's browser. This can lead to various security risks, including session hijacking, data theft, and unauthorized actions on behalf of the victim. The vulnerability is rated as moderate severity with a CVSS score of 6.1. The Common Weakness Enumeration (CWE) ID associated with this vulnerability is CWE-79.

How To Fix

Minimum fixed version

1.5.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not feasible, a temporary workaround is to disable or restrict access to the Jolokia agent servlet. This can be done by modifying the application's web.xml or servlet configuration to block access to the Jolokia servlet URL. Here's an example of how to restrict access using a servlet filter:

<filter> ``` <filter-name>JolokiaFilter</filter-name> <filter-class>com.example.JolokiaFilter</filter-class> ``` </filter>
<filter-mapping>
  <filter-name>JolokiaFilter</filter-name>
  <url-pattern>/jolokia/*</url-pattern>
</filter-mapping>

The JolokiaFilter class should implement the javax.servlet.Filter interface and handle the filtering logic.

Conclusion

The Jolokia agent version 1.3.7 is vulnerable to a cross-site scripting (XSS) attack. To mitigate this vulnerability, it is recommended to upgrade to version 1.5.0 or later. If upgrading is not feasible, you can apply a temporary workaround by disabling or restricting access to the Jolokia agent servlet. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.jolokia:jolokia-core →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute malicious JavaScript code in the victim's browser, potentially leading to session hijacking, data theft, and unauthorized actions on behalf of the victim.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities using just the pom.xml file.

Yes, upgrading the Jolokia agent to version 1.5.0 or later will fix the XSS vulnerability. Update the dependency in your Maven project to the latest version.

Yes, you can temporarily disable or restrict access to the Jolokia agent servlet by modifying the application's configuration. Refer to the 'workaround' section for more details.

The vulnerability is rated as moderate severity with a CVSS score of 6.1.

Related vulnerabilities

Recent vulnerabilities recorded for org.jolokia:jolokia-core.

How To Fix

Minimum fixed version

1.5.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback