# The SafeHtml annotation in Hibernate-Validator does not properly guard against XSS attacks

Advisory record · `GHSA-m8p2-495h-ccmh`

- **Identifiers:** `GHSA-m8p2-495h-ccmh` · `CVE-2019-10219`
- **State:** Confirmed
- **Severity:** CVSS 6.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 8 Jan 2020
- **Updated:** 12 Sept 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 8 Jan 2020, 17:01 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.hibernate.validator:hibernate-validator` (Maven): affected `>=6.1.0.Alpha1, <6.1.0.Alpha6 || >=6.0.0.Alpha1, <6.0.18.Final`; fixed in `6.1.0.Alpha6`, `6.0.18.Final`
- `org.hibernate:hibernate-validator` (Maven): affected `>=6.1.0.Alpha1, <6.1.0.Alpha6 || >=6.0.0.Alpha1, <6.0.18.Final`; fixed in `6.1.0.Alpha6`, `6.0.18.Final`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The SafeHtml annotation in hibernate-validator versions 6.0.0.Alpha1 up to 6.0.18.Final and 6.1.0.Alpha1 up to 6.1.0.Alpha6 fails to sanitize potentially malicious code in HTML comments and processing instructions, which can lead to cross-site scripting. The source gives few details about the required attacker position or user interaction. Upgrade to 6.0.18.Final or 6.1.0.Alpha6, or later.

Written 7 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.5 Medium, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`, from CNA (redhat)

- **CISA KEV:** Not listed.
- **EPSS:** 0.022, the 82nd percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:10 UTC: First seen by agentprime
- 31 Oct 2026, 15:10 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-m8p2-495h-ccmh)

## Sources

- [GitHub Advisory Database: GHSA-m8p2-495h-ccmh](https://github.com/advisories/GHSA-m8p2-495h-ccmh)
- [OSV: GHSA-m8p2-495h-ccmh](https://osv.dev/vulnerability/GHSA-m8p2-495h-ccmh)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-10219>
- <https://github.com/hibernate/hibernate-validator/commit/124b7dd6d9a4ad24d4d49f74701f05a13e56cee>
- <https://github.com/hibernate/hibernate-validator/commit/124b7dd6d9a4ad24d4d49f74701f05a13e56ceee>
- <https://github.com/hibernate/hibernate-validator/commit/20d729548511ac5cff6fd459f93de137195420fe>
- <https://www.oracle.com/security-alerts/cpujan2022.html>
- <https://security.netapp.com/advisory/ntap-20220210-0024>
- <https://lists.apache.org/thread.html/rf9c17c3efc4a376a96e9e2777eee6acf0bec28e2200e4b35da62de4a@%3Cpluto-dev.portals.apache.org%3E>
- <https://lists.apache.org/thread.html/rf9c17c3efc4a376a96e9e2777eee6acf0bec28e2200e4b35da62de4a%40%3Cpluto-dev.portals.apache.org%3E>
- <https://lists.apache.org/thread.html/rd418deda6f0ebe658c2015f43a14d03acb8b8c2c093c5bf6b880cd7c@%3Cpluto-dev.portals.apache.org%3E>
- <https://lists.apache.org/thread.html/rd418deda6f0ebe658c2015f43a14d03acb8b8c2c093c5bf6b880cd7c%40%3Cpluto-dev.portals.apache.org%3E>
- <https://lists.apache.org/thread.html/rb8dca19a4e52b60dab0ab21e2ff9968d78f4b84e4033824db1dd24b4@%3Cpluto-scm.portals.apache.org%3E>
- <https://lists.apache.org/thread.html/rb8dca19a4e52b60dab0ab21e2ff9968d78f4b84e4033824db1dd24b4%40%3Cpluto-scm.portals.apache.org%3E>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-m8p2-495h-ccmh>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-m8p2-495h-ccmh/>. Everything for agents: <https://agentprime.io/llms.txt>.
