HTML Injection Vulnerability in libhibernate-validator-java: CVE-2023-1932

libhibernate-validator-java Updated 02 Oct 2025

Summary

07/11/2024
N/A
No i
Unrated
Not published

DEBIAN-CVE-2023-1932: 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 characte... Affects libhibernate-validator-java versions 5.3.6-1 – 5.3.6-3. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libhibernate-validator-java is a Java library that provides validation capabilities for JavaBeans. It is widely used in Java applications to ensure that data adheres to specified constraints. This package is essential for maintaining data integrity and security within applications. However, it has been identified to have a vulnerability that could allow attackers to inject malicious HTML or execute Cross-Site Scripting (XSS) attacks.

Vulnerability Detail

A flaw was found in the 'isValid' method of the org.hibernate.validator.internal.constraintvalidators.hv.SafeHtmlValidator class. This flaw can be exploited by omitting the tag ending in a less-than character, which may lead to browsers rendering invalid HTML. As a result, this vulnerability can facilitate HTML injection or XSS attacks, posing a significant risk to applications utilizing this library.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can implement input validation on the client side to sanitize user inputs before they are processed by the application. This can help mitigate the risk of HTML injection until the package is updated.

Conclusion

The libhibernate-validator-java package has a critical vulnerability (CVE-2023-1932) that can lead to HTML injection and XSS attacks. It is crucial to update the package to the latest version to protect your application. Implementing input validation can serve as a temporary measure until the update is applied.

See every vulnerability recorded for libhibernate-validator-java →

Share this vulnerability

FAQ

CVE-2023-1932 is a vulnerability identified in the libhibernate-validator-java package that allows for HTML injection and potential XSS attacks.

If your application uses libhibernate-validator-java, it may be susceptible to HTML injection, which can compromise user data and application security.

Yes, a patched version of libhibernate-validator-java is available. It is recommended to update to this version to mitigate the vulnerability.

If an immediate update is not possible, implement input validation to sanitize user inputs as a temporary workaround.

You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just a manifest file like package-lock.json. You can also check if your application is affected by this vulnerability using the Vulert playground.

Related vulnerabilities

Recent vulnerabilities recorded for libhibernate-validator-java.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback