The SafeHtml annotation in Hibernate-Validator does not properly guard against XSS attacks
hibernate-validator
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.hibernate.validator:hibernate-validator Maven |
|
|
| org.hibernate:hibernate-validator Maven |
|
hibernate-validator
| Product | Affected | Fixed in |
|---|---|---|
| org.hibernate.validator:hibernate-validator Maven |
|
|
| org.hibernate:hibernate-validator Maven |
|
≥ 6.0.0.Alpha1 · < 6.0.18.Final
|
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.
From the CVE record · redhat
The SafeHtml validator annotation does not properly sanitize potentially malicious code in HTML comments and instructions. If an application uses it to validate attacker-controlled HTML, the code could result in XSS; the input does not specify authentication or user-interaction requirements.
Check applications using Maven org.hibernate.validator:hibernate-validator or org.hibernate:hibernate-validator versions from 6.0.0.Alpha1 before 6.0.18.Final, or from 6.1.0.Alpha1 before 6.1.0.Alpha6.