CVE-2018-12432: Cross-site Scripting in JavaMelody
6.1
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.47285%
CWE
Published
5/14/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
net.bull.javamelody:javamelody-core | maven | <= 1.60.0 | 1.61.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows the vulnerability stemmed from improper output encoding in HtmlCoreReport.java
. The original code used javascriptEncode()
alone on user-controlled input when generating alert messages. Since this input was later placed in an HTML script context, it required additional HTML encoding (added via htmlEncodeButNotSpace()
in the fix) to prevent XSS. The function writeMessageIfNotNull
handles this alert message construction, making it the clear vulnerable point.