Hibernate-validator: rendering of invalid html with safehtml leads to html injection and xss
Summary
Hibernate-validator: rendering of invalid html with safehtml leads to html injection and xss
Original description
The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2023-1932 libhibernate-validator-java
- Ubuntu UBUNTU-CVE-2023-1932 libhibernate-validator-java
References
- advisory access.redhat.com
- advisory github.com
- advisory nvd.nist.gov
- report bugzilla.redhat.com
- web access.redhat.com
- web access.redhat.com