{"id":"CVE-2026-28338","url":"https://www.cyber-defence.io/tools/cve/CVE-2026-28338","generatedAt":"2026-10-28T03:24:46.754Z","title":"When PMD analyzes untrusted source code containing crafted string literals, the generated HTML report contains executable JavaScript that runs when opened in a browser.","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.","published":"2026-02-27T21:16:19.000Z","lastModified":"2026-06-17T10:28:27.000Z","status":"Analyzed","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"cwe":["CWE-79"],"affected":["pmd project/pmd"],"epss":{"score":0.00343,"percentile":0.27603,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (0.34%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"https://github.com/pmd/pmd/commit/c140c0e1de5853a08efb84c9f91dfeb015882442","tags":["Patch"],"source":"security-advisories@github.com"},{"url":"https://github.com/pmd/pmd/pull/6475","tags":["Issue Tracking","Patch"],"source":"security-advisories@github.com"},{"url":"https://github.com/pmd/pmd/security/advisories/GHSA-8rr6-2qw5-pc7r","tags":["Exploit","Patch","Vendor Advisory"],"source":"security-advisories@github.com"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-28338","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}