XSS Vulnerability in Hibernate Validator - libhibernate-validator-java Package

libhibernate-validator-java Updated 02 Oct 2025

Summary

08/11/2019
N/A
No i
Unrated
Not published

DEBIAN-CVE-2019-10219: A vulnerability was found in Hibernate-Validator. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The libhibernate-validator-java package is a Java library that provides a framework for validating 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 found to contain a vulnerability that can expose applications to cross-site scripting (XSS) attacks.

Vulnerability Detail

A vulnerability was identified in the Hibernate Validator, specifically within the SafeHtml validator annotation. This vulnerability arises from the improper sanitization of payloads that may contain malicious code embedded in HTML comments and instructions. If exploited, this vulnerability can lead to XSS attacks, allowing attackers to inject harmful scripts into web pages viewed by users, potentially compromising user data and application integrity.

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 additional input validation and sanitization on user inputs before processing them. This can help mitigate the risk of XSS attacks until the package is updated. For example, you can use libraries such as OWASP Java HTML Sanitizer to clean user inputs.

Conclusion

The libhibernate-validator-java package has a critical vulnerability that can lead to XSS attacks if not addressed. It is essential for developers to update their packages to the latest patched version and consider implementing additional input validation as a temporary measure. Utilizing tools like Vulert can further enhance security by monitoring for vulnerabilities in real-time.

See every vulnerability recorded for libhibernate-validator-java →

Share this vulnerability

FAQ

The vulnerability allows for XSS attacks due to improper sanitization of HTML comments and instructions.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized script execution in users' browsers, potentially compromising sensitive data.

Yes, a patched version of the libhibernate-validator-java package is available. Updating to this version will resolve the vulnerability.

Vulert monitors and alerts for open-source vulnerabilities in software using a manifest file like package-lock.json. It helps developers maintain security without requiring access to the code.

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