# CVE-2025-35036: Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language

Source: https://junglewise.ai/threats/cve-2025-35036-hibernate-validator-may-interpolate-user-supplied-input-in-a  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-06-03  
License: CC BY 4.0 with a link back

CVE-2025-35036 · Severity: low · CVSS 3.1 · Published 2025-06-03

Hibernate Validator may interpolate user-supplied input in a constraint violation message with Expression Language

Technologies: [org.hibernate:hibernate-validator (Maven)](https://junglewise.ai/threats/technologies/org-hibernate-hibernate-validator), [org.hibernate.validator:hibernate-validator (Maven)](https://junglewise.ai/threats/technologies/org-hibernate-validator-hibernate-validator). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2025-35036 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-35036 being exploited in the wild.

**How severe is CVE-2025-35036?** Low severity, with a CVSS score of 3.1, published 3 June 2025.

**Which products and versions are affected?** org.hibernate:hibernate-validator (Maven) ECOSYSTEM:introduced=0,fixed=6.2.0.CR1; org.hibernate.validator:hibernate-validator (Maven) ECOSYSTEM:introduced=0,fixed=6.2.0.CR1.

**Is there a fix for CVE-2025-35036?** Yes. org.hibernate:hibernate-validator (Maven): upgrade to 6.2.0.CR1 or later; org.hibernate.validator:hibernate-validator (Maven): upgrade to 6.2.0.CR1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-35036?** Check whether you run org.hibernate:hibernate-validator (Maven) or org.hibernate.validator:hibernate-validator (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.hibernate:hibernate-validator (Maven): upgrade to 6.2.0.CR1 or later

  ```sh
  # set org.hibernate:hibernate-validator to 6.2.0.CR1 in your pom.xml or build.gradle
  ```

- org.hibernate.validator:hibernate-validator (Maven): upgrade to 6.2.0.CR1 or later

  ```sh
  # set org.hibernate.validator:hibernate-validator to 6.2.0.CR1 in your pom.xml or build.gradle
  ```


## Affected products

- org.hibernate:hibernate-validator (Maven) ECOSYSTEM:introduced=0,fixed=6.2.0.CR1
- org.hibernate.validator:hibernate-validator (Maven) ECOSYSTEM:introduced=0,fixed=6.2.0.CR1

## Identifiers

- CVE-2025-35036
- GHSA-7v6m-28jr-rg84

## Related threats

- [hibernate-validator Cross-site Scripting vulnerability](https://junglewise.ai/threats/cve-2023-1932-hibernate-validator-cross-site-scripting-vulnerability)
- [Improper Authentication in Hibernate Validator](https://junglewise.ai/threats/cve-2014-3558-improper-authentication-in-hibernate-validator)
- [Improper Input Validation in Hibernate Validator](https://junglewise.ai/threats/cve-2020-10693-improper-input-validation-in-hibernate-validator)
- [Privilege Escalation in Hibernate Validator](https://junglewise.ai/threats/cve-2017-7536-privilege-escalation-in-hibernate-validator)
- [The SafeHtml annotation in Hibernate-Validator does not properly guard against XSS attacks](https://junglewise.ai/threats/cve-2019-10219-the-safehtml-annotation-in-hibernate-validator-does-not-properly)
