Skip to content
OpenAdvisories
Medium · 6.1 CVE-2023-1932 EUVD-2024-3327GHSA-x83m-pf6f-pf9g

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

Published Nov 7, 2024 · Updated Nov 7, 2024 · Assigned by redhat

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

VendorProductAffectedFixed
Red Hat A-MQ Clients 2 — —
Red Hat Cryostat 2 — —
Red Hat Red Hat AMQ Broker 7 — —
Red Hat Red Hat A-MQ Online — —
Red Hat Red Hat BPM Suite 6 — —
Red Hat Red Hat CodeReady Studio 12 — —
Red Hat Red Hat Data Grid 8 — —
Red Hat Red Hat Decision Manager 7 — —
Red Hat Red Hat Fuse 7 — —
Red Hat Red Hat JBoss BRMS 5 — —
Red Hat Red Hat JBoss Data Grid 7 — —
Red Hat Red Hat JBoss Data Virtualization 6 — —
Red Hat Red Hat JBoss Enterprise Application Platform 5 — —
Red Hat Red Hat JBoss Enterprise Application Platform 6 — —
Red Hat Red Hat JBoss Enterprise Application Platform 7 — —
Red Hat Red Hat JBoss Enterprise Application Platform Continuous Delivery — —
Red Hat Red Hat JBoss Fuse 6 — —
Red Hat Red Hat JBoss Fuse Service Works 6 — —
Red Hat Red Hat JBoss Operations Network 3 — —
Red Hat Red Hat JBoss SOA Platform 5 — —
Red Hat Red Hat OpenStack Platform 10 (Newton) — —
Red Hat Red Hat OpenStack Platform 13 (Queens) — —
Red Hat Red Hat Process Automation 7 — —
Red Hat Red Hat Satellite 6 — —
Red Hat Red Hat Single Sign-On 7 — —
Red Hat Red Hat support for Spring Boot — —
Red Hat streams for Apache Kafka — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libhibernate-validator-java No fix yet —
Debian 13 libhibernate-validator-java No fix yet —
Debian 12 libhibernate-validator-java No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libhibernate-validator-java No fix yet —
Ubuntu 26.04 LTS libhibernate-validator-java No fix yet —
Ubuntu 25.10 libhibernate-validator-java No fix yet —
Ubuntu 24.04 LTS libhibernate-validator-java No fix yet —
Ubuntu 22.04 LTS libhibernate-validator-java No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libhibernate-validator-java No fix yet —
Ubuntu 18.04 LTS libhibernate-validator-java No fix yet —
Ubuntu 16.04 LTS libhibernate-validator-java No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.hibernate:hibernate-validator < 6.2.0.Final 6.2.0.Final GHSA-x83m-pf6f-pf9g
Maven org.hibernate.validator:hibernate-validator < 6.2.0.Final 6.2.0.Final GHSA-x83m-pf6f-pf9g

References