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

- Severity: Medium 6.1 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2024-11-07T10:00:51.745Z
- Modified: 2026-06-17T05:29:03.803Z
- Also known as: GHSA-x83m-pf6f-pf9g
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- org.apache.logging.log4j-log4j: no versions given
- hibernate-validator: no versions given
- io.enmasse-enmasse: no versions given
- opendaylight: no versions given
- candlepin: no versions given
- org.hibernate.validator:hibernate-validator (Maven): before 6.2.0.Final
- org.hibernate:hibernate-validator (Maven): before 6.2.0.Final
- redhat codeready_studio: 12.0
- redhat jboss_enterprise_application_platform: 7.0.0
- redhat openstack_platform: 13.0
- redhat single_sign-on: 7.0
- hibernate hibernate-validator: before 6.2

## Every score

- redhat: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://access.redhat.com/security/cve/CVE-2023-1932> (vdb-entry, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1809444> (issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-1932> (advisory)
- <https://github.com/hibernate/hibernate-validator> (package)

## Sources

- CVE List: [CVE-2023-1932](https://www.cve.org/CVERecord?id=CVE-2023-1932), CVE Terms of Use, modified 2024-11-07
- GitHub Advisory Database: [GHSA-x83m-pf6f-pf9g](https://github.com/advisories/GHSA-x83m-pf6f-pf9g), CC-BY-4.0, modified 2025-09-12
- NVD: [CVE-2023-1932](https://nvd.nist.gov/vuln/detail/CVE-2023-1932), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-1932 · Whole record: https://cve.day/CVE-2023-1932.json · Rebuilt by cve.day 2026-11-25T22:58:34.356Z
