CVE-2026-28338
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.
Severity
MEDIUM
CVSS v3
6.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N · source cna
Exploit chance (EPSS)
0.346%
chance of exploitation in the next 30 days
higher than 28.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-03-03 |
Timeline
- 2026-02-27Published by the CNA20:28 UTC
- 2026-02-28GitHub advisory published (GHSA-8rr6-2qw5-pc7r)1 day after publication
- 2026-03-03CISA SSVC decision recorded4 days after publication
Exploit and advisory records
GitHub advisory GHSA-8rr6-2qw5-pc7r, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven net.sourceforge.pmd:pmd-core | before 7.22.0 | 7.22.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| pmd_project pmd | before 7.22.0fixed in 7.22.0 | 7.22.0 |
References
- https://github.com/pmd/pmd/commit/c140c0e1de5853a08efb84c9f91dfeb015882442
- https://github.com/pmd/pmd/pull/6475
- https://github.com/pmd/pmd/security/advisories/GHSA-8rr6-2qw5-pc7r
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-28338'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-28338'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-28338'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-28338'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).