Live threats

All CVEs / Pmd Project

CVE-2026-28338Pmd Project Pmd

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
—
Auth required
No
Published
Feb 27, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pmd.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven net.sourceforge.pmd:pmd-core < 7.22.0 7.22.0 —

Per OSV / GitHub Advisories (GHSA-8rr6-2qw5-pc7r). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pmd_projectpmd< 7.22.0

Official sources

References

Links published by the sources. Open them with care.