CVE-2026-28338
February 27, 2026
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.
Affected Packages
https://github.com/pmd/pmd.git (GITHUB):
Affected version(s) >=pmd_releases/5.2.0 <pmd_releases/7.22.0Fix Suggestion:
Update to version pmd_releases/7.22.0net.sourceforge.pmd:pmd-core (JAVA):
Affected version(s) >=5.2.0 <7.22.0Fix Suggestion:
Update to version 7.22.0Related ResourcesĀ (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.6
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.8
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
0.03