MODERATE 6.1

CVE-2023-1932

hibernate-validator Cross-site Scripting vulnerability

Description

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.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.hibernate » hibernate-validator
< 6.2.0.Final
6.2.0.Final
org.hibernate.validator » hibernate-validator
< 6.2.0.Final
6.2.0.Final

Blast radius

2affected artifacts
239affected versions
29,836dependent artifacts (est.)
1,282,634dependent versions

63% of the dependent artifacts (18,809) still pull an affected version in their latest release.

DepthDependent versions
Direct
154,340
2 hops
469,983
3 hops
310,942
4 hops
192,475
5 hops
88,420
6 hops
66,474

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.