{"id":"CVE-2026-28338","state":"PUBLISHED","title":"PMD Designer has Stored XSS in VBHTMLRenderer and YAHTMLRenderer via unescaped violation messages","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.","publishedAt":"2026-02-27T20:28:05.739Z","updatedAt":"2026-03-03T20:26:01.369Z","severity":{"score":6.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["pmd pmd"],"affected":[{"vendor":"pmd","product":"pmd","versions":[{"version":"< 7.22.0","status":"affected"}]}],"references":["https://github.com/pmd/pmd/security/advisories/GHSA-8rr6-2qw5-pc7r","https://github.com/pmd/pmd/pull/6475","https://github.com/pmd/pmd/commit/c140c0e1de5853a08efb84c9f91dfeb015882442"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:11:31.369Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/28xxx/CVE-2026-28338.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-28338","state":"PUBLISHED","datePublished":"2026-02-27T20:28:05.739Z","dateUpdated":"2026-03-03T20:26:01.369Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-02-26T18:38:13.889Z"},"containers":{"cna":{"title":"PMD Designer has Stored XSS in VBHTMLRenderer and YAHTMLRenderer via unescaped violation messages","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"pmd","product":"pmd","versions":[{"version":"< 7.22.0","status":"affected"}]}],"references":[{"url":"https://github.com/pmd/pmd/security/advisories/GHSA-8rr6-2qw5-pc7r","name":"https://github.com/pmd/pmd/security/advisories/GHSA-8rr6-2qw5-pc7r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pmd/pmd/pull/6475","name":"https://github.com/pmd/pmd/pull/6475","tags":["x_refsource_MISC"]},{"url":"https://github.com/pmd/pmd/commit/c140c0e1de5853a08efb84c9f91dfeb015882442","name":"https://github.com/pmd/pmd/commit/c140c0e1de5853a08efb84c9f91dfeb015882442","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-02-27T20:28:05.739Z"},"source":{"advisory":"GHSA-8rr6-2qw5-pc7r","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-03T20:25:54.223576Z","id":"CVE-2026-28338","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-03T20:26:01.369Z"}}]}}}