CVE-2023-1932 — hibernate-validator
MEDIUMCVE-2023-1932 is a medium-severity (CVSS 6.1) Cross-site Scripting (XSS) vulnerability in org.hibernate.validator:hibernate-validator. A fix is available for org.hibernate.validator:hibernate-validator — see the affected versions and patch details below.
Hibernate-validator: rendering of invalid html with safehtml leads to html injection and xss
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2023-1932.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.hibernate.validator:hibernate-validator☕org.hibernate:hibernate-validatorReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.hibernate.validator:hibernate-validator | all versions | 6.2.0.Finalorg.hibernate.validator:hibernate-validator:6.2.0.Final |
| ☕Maven | org.hibernate:hibernate-validator | all versions | 6.2.0.Finalorg.hibernate:hibernate-validator:6.2.0.Final |
Affected Products
hibernate-validatorhibernatecodeready studioredhatjboss enterprise application platformredhatopenstack platformredhatsingle sign-onredhatDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.hibernate.validator:hibernate-validator, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.hibernate.validator:hibernate-validator to 6.2.0.Final or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2023-1932 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is CVE-2023-1932 in your dependencies?
Find it across Maven, including transitive dependencies.