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

Advisory record · `GHSA-7v6m-28jr-rg84`

- **Identifiers:** `GHSA-7v6m-28jr-rg84` · `CVE-2025-35036`
- **State:** Confirmed
- **Severity:** CVSS 6.9 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-94](https://cwe.mitre.org/data/definitions/94.html)
- **Tags:** [Code injection](https://agentprime.io/advisories/tag/code-injection.md)
- **Published:** 3 Jun 2025
- **Updated:** 12 Sept 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 3 Jun 2025, 21:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.hibernate.validator:hibernate-validator` (Maven): affected `<6.2.0.CR1 || >=7.0.0.Alpha1, <7.0.0.CR1`; fixed in `6.2.0.CR1`, `7.0.0.CR1`
- `org.hibernate:hibernate-validator` (Maven): affected `<6.2.0.CR1 || >=7.0.0.Alpha1, <7.0.0.CR1`; fixed in `6.2.0.CR1`, `7.0.0.CR1`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Hibernate Validator versions before 6.2.0.CR1 and from 7.0.0.Alpha1 up to 7.0.0.CR1 (packages org.hibernate.validator:hibernate-validator and org.hibernate:hibernate-validator) may interpolate user-supplied input in constraint violation messages using Expression Language. Depending on how the library is used, an attacker who can supply such input could access sensitive information or execute arbitrary Java code. Upgrade to 6.2.0.CR1 or 7.0.0.CR1 or later, and avoid placing user-supplied input in constraint violation messages.

Written 7 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.9 Medium, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`, from CNA (cisa-cg)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0078, the 56th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:10 UTC: First seen by agentprime
- 31 Oct 2026, 15:10 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-7v6m-28jr-rg84)

## Sources

- [GitHub Advisory Database: GHSA-7v6m-28jr-rg84](https://github.com/advisories/GHSA-7v6m-28jr-rg84)
- [OSV: GHSA-7v6m-28jr-rg84](https://osv.dev/vulnerability/GHSA-7v6m-28jr-rg84)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-35036>
- <https://github.com/hibernate/hibernate-validator/pull/1138>
- <https://github.com/hibernate/hibernate-validator/commit/05f795bb7cf18856004f40e5042709e550ed0d6e>
- <https://github.com/hibernate/hibernate-validator/commit/254858d9dcc4e7cd775d1b0f47f482218077c5e1>
- <https://github.com/hibernate/hibernate-validator/commit/d2db40b9e7d22c7a0b44d7665242dfc7b4d14d78>
- <https://github.com/hibernate/hibernate-validator/commit/e076293b0ee1bfa97b6e67d05ad9eee1ad77e893>
- <https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#section-hibernateconstraintvalidatorcontext>
- <https://github.com/hibernate/hibernate-validator>
- <https://github.com/hibernate/hibernate-validator/compare/6.1.7.Final...6.2.0.Final>
- <https://hibernate.atlassian.net/browse/HV-1816>
- <https://hibernate.org/validator/documentation/migration-guide/#6-2-0-cr1>
- <https://in.relation.to/2021/01/06/hibernate-validator-700-62-final-released/#expression-language>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-7v6m-28jr-rg84>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-7v6m-28jr-rg84/>. Everything for agents: <https://agentprime.io/llms.txt>.
