org.hibernate.validator:hibernate-validator@6.0.9.Final vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.hibernate.validator:hibernate-validator package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-Site Scripting (XSS)

org.hibernate.validator:hibernate-validator is a Hibernate Validator Engine Relocation Artifact.

Affected versions of this package are vulnerable to Cross-Site Scripting (XSS) due to the 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 invalid HTML, allowing for the injection of arbitrary HTML content or the execution of scripts in the context of the user's browser session by crafting malicious input.

How to fix Cross-Site Scripting (XSS)?

Upgrade org.hibernate.validator:hibernate-validator to version 6.2.0 or higher.

[,6.2.0)
  • M
Improper Input Validation

org.hibernate.validator:hibernate-validator is a Hibernate Validator Engine Relocation Artifact.

Affected versions of this package are vulnerable to Improper Input Validation. A bug in the message interpolation processor enables invalid EL expressions to be evaluated as if they were valid. This flaw allows attackers to bypass input sanitation (escaping, stripping) controls that developers may have put in place when handling user-controlled data in error messages.

How to fix Improper Input Validation?

Upgrade org.hibernate.validator:hibernate-validator to version 6.0.19.Final, 6.1.3.Final or higher.

[,6.0.19.Final) [6.1.0,6.1.3.Final)
  • M
Cross-site Scripting (XSS)

org.hibernate.validator:hibernate-validator is a Hibernate Validator Engine Relocation Artifact.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). The SafeHtml validator annotation fails to properly sanitize payloads consisting of potentially malicious code in HTML comments and instructions.

How to fix Cross-site Scripting (XSS)?

Upgrade org.hibernate.validator:hibernate-validator to version 6.0.18.Final, 6.1.0.Final or higher.

[,6.0.18.Final) [6.1.0.Alpha1,6.1.0.Final)