What’s Vulnerable › Vulnerabilities
CVE-2023-1932: Hibernate-validator: rendering of invalid html with safehtml leads to html injection and xss
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-11-07 · updated 2026-06-17
- Weakness: CWE-79
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 products
- hibernate-validator: before 6.2 — fixed in 6.2
- RedHat Codeready Studio: 12.0
- Red Hat JBoss EAP: 7.0.0
- nova_libvirt container provided by the Red Hat OpenStack Platform: 13.0
- Red Hat Single Sign-On: 7.0
How to fix
Upgrade to a fixed version: hibernate-validator 6.2. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/security/cve/CVE-2023-1932
- https://bugzilla.redhat.com/show_bug.cgi?id=1809444
Get alerted when CVE-2023-1932 or the next vulnerability affects your stack