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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.66% (percentile 46, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-x83m-pf6f-pf9g
- **Published:** 2024-11-07T10:00:51.745Z
- **Modified:** 2026-06-17T05:29:03.803Z

## Who should check

- Projects that depend on Maven package org.hibernate.validator:hibernate-validator (\< 6.2.0.Final)
- Projects that depend on Maven package org.hibernate:hibernate-validator (\< 6.2.0.Final)
- Anyone running Red Hat A-MQ Clients 2 (versions: see the vendor advisory)
- Anyone running Red Hat Cryostat 2 (versions: see the vendor advisory)
- Anyone running Red Hat AMQ Broker 7 (versions: see the vendor advisory)
- Anyone running Red Hat A-MQ Online (versions: see the vendor advisory)
- Anyone running Red Hat BPM Suite 6 (versions: see the vendor advisory)
- Anyone running Red Hat CodeReady Studio 12 all versions

## 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 and fixed versions

- Maven `org.hibernate.validator:hibernate-validator`: affected \< 6.2.0.Final; fixed 6.2.0.Final (osv)
- Maven `org.hibernate:hibernate-validator`: affected \< 6.2.0.Final; fixed 6.2.0.Final (osv)
- Red Hat A-MQ Clients 2: see vendor advisory (cvelist)
- Red Hat Cryostat 2: see vendor advisory (cvelist)
- Red Hat AMQ Broker 7: see vendor advisory (cvelist)
- Red Hat A-MQ Online: see vendor advisory (cvelist)
- Red Hat BPM Suite 6: see vendor advisory (cvelist)
- Red Hat CodeReady Studio 12: all versions (cvelist)
- Red Hat Data Grid 8: see vendor advisory (cvelist)
- Red Hat Decision Manager 7: see vendor advisory (cvelist)
- Red Hat Fuse 7: see vendor advisory (cvelist)
- Red Hat JBoss BRMS 5: see vendor advisory (cvelist)
- Red Hat JBoss Data Grid 7: see vendor advisory (cvelist)
- Red Hat JBoss Data Virtualization 6: see vendor advisory (cvelist)
- Red Hat JBoss Enterprise Application Platform 5: see vendor advisory (cvelist)
- Red Hat JBoss Enterprise Application Platform 6: see vendor advisory (cvelist)
- Red Hat JBoss Enterprise Application Platform 7: all versions (cvelist)
- Red Hat JBoss Enterprise Application Platform Continuous Delivery: all versions (cvelist)
- Red Hat JBoss Fuse 6: see vendor advisory (cvelist)
- Red Hat JBoss Fuse Service Works 6: see vendor advisory (cvelist)
- Red Hat JBoss Operations Network 3: see vendor advisory (cvelist)
- Red Hat JBoss SOA Platform 5: see vendor advisory (cvelist)
- Red Hat OpenStack Platform 10 (Newton): see vendor advisory (cvelist)
- Red Hat OpenStack Platform 13 (Queens): all versions (cvelist)
- Red Hat Process Automation 7: see vendor advisory (cvelist)
- Red Hat Satellite 6: all versions (cvelist)
- Red Hat Single Sign-On 7: all versions (cvelist)
- Red Hat support for Spring Boot: see vendor advisory (cvelist)
- Red Hat streams for Apache Kafka: see vendor advisory (cvelist)

## Mitigation

- Upgrade org.hibernate.validator:hibernate-validator to 6.2.0.Final or later.
- Upgrade org.hibernate:hibernate-validator to 6.2.0.Final or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-1932. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-1932.md
Affected: org.hibernate.validator:hibernate-validator < 6.2.0.Final; org.hibernate:hibernate-validator < 6.2.0.Final
Fixed in: 6.2.0.Final

Steps:
1. Search this machine and project for org.hibernate.validator:hibernate-validator (Maven), org.hibernate:hibernate-validator (Maven), Red Hat A-MQ Clients 2, Red Hat Cryostat 2, Red Hat AMQ Broker 7, Red Hat A-MQ Online: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-1932 being exploited?

There is no confirmed exploitation: CVE-2023-1932 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.66% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-1932?

Medium: CVSS 6.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-1932?

org.hibernate.validator:hibernate-validator \< 6.2.0.Final; org.hibernate:hibernate-validator \< 6.2.0.Final.

### Is there a fix for CVE-2023-1932?

Yes. Fixed in 6.2.0.Final. Upgrade org.hibernate.validator:hibernate-validator to 6.2.0.Final or later. Upgrade org.hibernate:hibernate-validator to 6.2.0.Final or later.

### How do I check if I'm affected by CVE-2023-1932?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/security/cve/CVE-2023-1932>
- vendor: <https://bugzilla.redhat.com/show_bug.cgi?id=1809444>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-1932>
- other: <https://github.com/hibernate/hibernate-validator>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-1932>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-x83m-pf6f-pf9g> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-1932> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-1932>
