What’s Vulnerable › Vulnerabilities

CVE-2023-1932: Hibernate-validator: rendering of invalid html with safehtml leads to html injection and xss

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

How to fix

Upgrade to a fixed version: hibernate-validator 6.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-1932 or the next vulnerability affects your stack