hibernate-validator Cross-site Scripting vulnerability
Published 7 Nov 2024 · Updated 12 Sept 2025
Is your project on an affected org.hibernate.validator:hibernate-validator?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <6.2.0.Final
- Fixed in
- 6.2.0.Final
mvn versions:use-dep-version -Dincludes=org.hibernate.validator:hibernate-validator -DdepVersion=6.2.0.Final -DforceVersion=true- Affected
- <6.2.0.Final
- Fixed in
- 6.2.0.Final
mvn versions:use-dep-version -Dincludes=org.hibernate:hibernate-validator -DdepVersion=6.2.0.Final -DforceVersion=trueDetails
A flaw was found in hibernate-validator's 'isValid' method in the org.hibernate.validator.internal.constraintvalidators.hv.SafeHtmlValidator class, which can be bypassed by omitting the tag ending in a less-than character. Browsers may render an invalid html, allowing HTML injection or Cross-Site-Scripting (XSS) attacks.
Is GHSA-x83m-pf6f-pf9g 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-2020-10693Improper Input Validation in Hibernate Validator · 4 Jun 2021
- MediumCVE-2019-10219The SafeHtml annotation in Hibernate-Validator does not properly guard against XSS attacks · 8 Jan 2020
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.