# CVE-2026-28338: PMD Designer has Stored XSS in VBHTMLRenderer and YAHTMLRenderer via unescaped violation messages

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-27T20:28:05.739Z
- Modified: 2026-06-17T10:28:27.310Z
- Also known as: GHSA-8rr6-2qw5-pc7r
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- pmd pmd: < 7.22.0
- net.sourceforge.pmd:pmd-core (Maven): before 7.22.0
- pmd_project pmd: before 7.22.0

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/pmd/pmd/security/advisories/GHSA-8rr6-2qw5-pc7r> (exploit, patch, vendor-advisory, web)
- <https://github.com/pmd/pmd/pull/6475> (issue-tracking, patch, web)
- <https://github.com/pmd/pmd/commit/c140c0e1de5853a08efb84c9f91dfeb015882442> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-28338> (advisory)
- <https://github.com/pmd/pmd> (package)

## Sources

- CVE List: [CVE-2026-28338](https://www.cve.org/CVERecord?id=CVE-2026-28338), CVE Terms of Use, modified 2026-03-03
- GitHub Advisory Database: [GHSA-8rr6-2qw5-pc7r](https://github.com/advisories/GHSA-8rr6-2qw5-pc7r), CC-BY-4.0, modified 2026-02-28
- NVD: [CVE-2026-28338](https://nvd.nist.gov/vuln/detail/CVE-2026-28338), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-28338 · Whole record: https://cve.day/CVE-2026-28338.json · Rebuilt by cve.day 2026-11-25T22:59:15.045Z
