CVE Explore

XSS in Pmd

CVE-2026-28338

CVSS v3
6.8 Medium
Public exploits
None known
EPSS
0.003 · 28.7th percentile
Published
2026-02-27

What to do

Fixed in
7.22.0
Affected
2 affected products

PMD is an extensible multilanguage static code analyzer. Prior to version 7.22.0, PMD's `vbhtml` and `yahtml` report formats insert rule violation messages into HTML output without escaping. When PMD analyzes untrusted source code containing crafted string literals, the generated HTML report contains executable JavaScript that runs when opened in a browser. Practical impact is limited because `vbhtml` and `yahtml` are legacy formats rarely used in practice. The default `html` format is properly escaped and not affected. Version 7.22.0 contains a fix for the issue.

Vulnerability class: XSS (Cross-Site Scripting)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 6.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N.

Attack Vector
Network AV:N
Attack Complexity
High AC:H
Privileges Required
None PR:N
User Interaction
Required UI:R
Scope
Unchanged S:U
Confidentiality
High C:H
Integrity
High I:H
Availability
None A:N

EPSS exploit prediction

EPSS 0.003, 28.7th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

Weakness classification (CWE)

References