CVE-2026-28338

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:pmd_project:pmd:*:*:*:*:*:*:*:*

History

17 Jun 2026, 10:28

Type Values Removed Values Added
Summary
  • (es) PMD es un analizador de código estático multilenguaje extensible. Antes de la versión 7.22.0, los formatos de informe 'vbhtml' y 'yahtml' de PMD insertan mensajes de violación de reglas en la salida HTML sin escapar. Cuando PMD analiza código fuente no confiable que contiene literales de cadena manipulados, el informe HTML generado contiene JavaScript ejecutable que se ejecuta al abrirse en un navegador. El impacto práctico es limitado porque 'vbhtml' y 'yahtml' son formatos heredados rara vez utilizados en la práctica. El formato 'html' predeterminado está correctamente escapado y no se ve afectado. La versión 7.22.0 contiene una solución para el problema.

03 Mar 2026, 18:43

Type Values Removed Values Added
References () https://github.com/pmd/pmd/commit/c140c0e1de5853a08efb84c9f91dfeb015882442 - () https://github.com/pmd/pmd/commit/c140c0e1de5853a08efb84c9f91dfeb015882442 - Patch
References () https://github.com/pmd/pmd/pull/6475 - () https://github.com/pmd/pmd/pull/6475 - Issue Tracking, Patch
References () https://github.com/pmd/pmd/security/advisories/GHSA-8rr6-2qw5-pc7r - () https://github.com/pmd/pmd/security/advisories/GHSA-8rr6-2qw5-pc7r - Exploit, Patch, Vendor Advisory
CPE cpe:2.3:a:pmd_project:pmd:*:*:*:*:*:*:*:*
First Time Pmd Project
Pmd Project pmd

27 Feb 2026, 21:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-02-27 21:16

Updated : 2026-06-17 10:28


NVD link : CVE-2026-28338

Mitre link : CVE-2026-28338

CVE.ORG link : CVE-2026-28338


JSON object : View

Products Affected

pmd_project

  • pmd
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')