org.hibernate.validator:hibernate-validator@6.1.0.Alpha3 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
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)