{"id":"CVE-2026-28338","published":"2026-02-27T20:28:05Z","modified":"2026-03-03T20:26:01Z","title":"PMD Designer has Stored XSS in VBHTMLRenderer and YAHTMLRenderer via unescaped violation messages","vendor":"pmd","product":"pmd","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00341,"percentile":0.28101,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/pmd/pmd/security/advisories/GHSA-8rr6-2qw5-pc7r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pmd/pmd/pull/6475","tags":["x_refsource_MISC"]},{"url":"https://github.com/pmd/pmd/commit/c140c0e1de5853a08efb84c9f91dfeb015882442","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":5.62},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"pmd","affectedVersions":[{"vendor":"pmd","product":"pmd","versions":["< 7.22.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-03T20:25:54.223576Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"net.sourceforge.pmd:pmd-core","vulnerableRanges":["<7.22.0"],"patched":["7.22.0"],"from":["GHSA-8rr6-2qw5-pc7r"],"provenance":"source"}],"summary":{"text":"PMD, the extensible multilanguage static code analyzer, has a stored cross-site scripting flaw in its legacy vbhtml and yahtml report formats, which insert rule violation messages into HTML output without escaping them. An attacker who can supply crafted string literals in source code that PMD analyzes can get executable JavaScript into the generated report, which runs when a user opens it in a browser, requiring that user interaction and an analysis of the untrusted code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:02Z"},"euvd":{"id":"EUVD-2026-9069","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-7722","published":"2019-02-11","fixed":"6.0.0","kev":false},{"cve":"CVE-2025-23215","published":"2025-01-31","fixed":"7.10.0","kev":false,"link":{"from":"CVE-2025-23215","to":"CVE-2026-28338","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:net.sourceforge.pmd:pmd-core","fromFixed":"7.10.0","toFixed":"7.22.0","daysApart":392}]}},{"cve":"CVE-2026-28338","published":"2026-02-27","fixed":"7.22.0","kev":false}],"package":"Maven:net.sourceforge.pmd:pmd-core"}}