MediumGHSA-m8p2-495h-ccmhCVE-2019-10219

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

Published 8 Jan 2020 · Updated 12 Sept 2025

Is your project on an affected org.hibernate.validator:hibernate-validator?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=6.1.0.Alpha1 <6.1.0.Alpha6
Fixed in
6.1.0.Alpha6
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.hibernate.validator:hibernate-validator -DdepVersion=6.1.0.Alpha6 -DforceVersion=true
Affected
>=6.0.0.Alpha1 <6.0.18.Final
Fixed in
6.0.18.Final
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.hibernate.validator:hibernate-validator -DdepVersion=6.0.18.Final -DforceVersion=true
Affected
>=6.1.0.Alpha1 <6.1.0.Alpha6
Fixed in
6.1.0.Alpha6
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.hibernate:hibernate-validator -DdepVersion=6.1.0.Alpha6 -DforceVersion=true
Affected
>=6.0.0.Alpha1 <6.0.18.Final
Fixed in
6.0.18.Final
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.hibernate:hibernate-validator -DdepVersion=6.0.18.Final -DforceVersion=true

Details

A vulnerability was found in Hibernate-Validator. The SafeHtml validator annotation fails to properly sanitize payloads consisting of potentially malicious code in HTML comments and instructions. This vulnerability can result in an XSS attack.

Is GHSA-m8p2-495h-ccmh in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.hibernate.validator:hibernate-validator, and gives you the command that fixes it.

More advisories for org.hibernate.validator:hibernate-validator

  • MediumCVE-2025-35036Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language · 3 Jun 2025
  • MediumCVE-2023-1932hibernate-validator Cross-site Scripting vulnerability · 7 Nov 2024
  • MediumCVE-2020-10693Improper Input Validation in Hibernate Validator · 4 Jun 2021
org.hibernate.validator:hibernate-validator security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.