# CVE-2019-10219: The SafeHtml annotation in Hibernate-Validator does not properly guard against XSS attacks

Source: https://junglewise.ai/threats/cve-2019-10219-the-safehtml-annotation-in-hibernate-validator-does-not-properly  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-01-08  
License: CC BY 4.0 with a link back

CVE-2019-10219 · Severity: low · CVSS 3 · Published 2020-01-08

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

Technologies: [org.hibernate:hibernate-validator (Maven)](https://junglewise.ai/threats/technologies/org-hibernate-hibernate-validator), [org.hibernate.validator:hibernate-validator (Maven)](https://junglewise.ai/threats/technologies/org-hibernate-validator-hibernate-validator). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2019-10219 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2019-10219 being exploited in the wild.

**How severe is CVE-2019-10219?** Low severity, with a CVSS score of 3, published 8 January 2020.

**Which products and versions are affected?** org.hibernate:hibernate-validator (Maven) ECOSYSTEM:introduced=6.1.0.Alpha1,fixed=6.1.0.Alpha6; org.hibernate.validator:hibernate-validator (Maven) ECOSYSTEM:introduced=6.1.0.Alpha1,fixed=6.1.0.Alpha6.

**Is there a fix for CVE-2019-10219?** Yes. org.hibernate:hibernate-validator (Maven): upgrade to 6.1.0.Alpha6 or later; org.hibernate.validator:hibernate-validator (Maven): upgrade to 6.1.0.Alpha6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2019-10219?** Check whether you run org.hibernate:hibernate-validator (Maven) or org.hibernate.validator:hibernate-validator (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.hibernate:hibernate-validator (Maven): upgrade to 6.1.0.Alpha6 or later

  ```sh
  # set org.hibernate:hibernate-validator to 6.1.0.Alpha6 in your pom.xml or build.gradle
  ```

- org.hibernate.validator:hibernate-validator (Maven): upgrade to 6.1.0.Alpha6 or later

  ```sh
  # set org.hibernate.validator:hibernate-validator to 6.1.0.Alpha6 in your pom.xml or build.gradle
  ```


## Affected products

- org.hibernate:hibernate-validator (Maven) ECOSYSTEM:introduced=6.1.0.Alpha1,fixed=6.1.0.Alpha6
- org.hibernate.validator:hibernate-validator (Maven) ECOSYSTEM:introduced=6.1.0.Alpha1,fixed=6.1.0.Alpha6

## Identifiers

- CVE-2019-10219
- GHSA-m8p2-495h-ccmh

## Related threats

- [Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language](https://junglewise.ai/threats/cve-2025-35036-hibernate-validator-may-interpolate-user-supplied-input-in-a)
- [hibernate-validator Cross-site Scripting vulnerability](https://junglewise.ai/threats/cve-2023-1932-hibernate-validator-cross-site-scripting-vulnerability)
- [Improper Authentication in Hibernate Validator](https://junglewise.ai/threats/cve-2014-3558-improper-authentication-in-hibernate-validator)
- [Improper Input Validation in Hibernate Validator](https://junglewise.ai/threats/cve-2020-10693-improper-input-validation-in-hibernate-validator)
- [Privilege Escalation in Hibernate Validator](https://junglewise.ai/threats/cve-2017-7536-privilege-escalation-in-hibernate-validator)
