VULNERABILITY INTELLIGENCE
CVE-2026-28338
CVSS score6.8 MEDIUM
EPSS probability0.34%
CISA KEVNot currently listed
Published2026-02-27
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Description
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.
Weakness classification
- security-advisories@github.com: CWE-79
Primary references
- security-advisories@github.com — Patch
- security-advisories@github.com — Issue Tracking, Patch
- security-advisories@github.com — Exploit, Patch, Vendor Advisory