Intel

AIKIDO-2026-150200

hibernate-validator is vulnerable to Expression Language Injection

CVE-2026-93879Published Nov 3, 2026
November 3, 2026

75

CVE Score

High

Expression Language Injection

Are you affected? Scan for Free

TL;DR

hibernate-validator copies values passed to HibernateConstraintValidatorContext#addMessageParameter, including duplicate values from @UniqueElements, into the constraint message before Expression Language interpolation. When an EL implementation is on the classpath and interpolation is enabled for that message, the interpolator runs untrusted parameter text as an expression, which can exhaust server resources, and with the BEAN_METHODS feature level can also read data or run code. The fix escapes message parameter values by default so they stay literal during interpolation.

How do I fix this?

Upgrade the org.hibernate.validator:hibernate-validator library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and Expression Language interpolation is enabled for a message that includes an untrusted addMessageParameter value or a custom @UniqueElements message.

Versions

5.4.1.Final - 6.2.5.Final

Fixed in 6.2.6.Final

7.0.0.Final - 7.0.5.Final

Fixed in 7.0.6.Final

8.0.0.Final - 8.0.5.Final

Fixed in 8.0.6.Final

9.0.0.Final - 9.0.1.Final

Fixed in 9.0.2.Final

9.1.0.Final - 9.1.4.Final

Fixed in 9.1.5.Final

Background info

hibernate-validator is vulnerable to Expression Language Injection in versions 5.4.1.Final - 6.2.5.Final, 7.0.0.Final - 7.0.5.Final, 8.0.0.Final - 8.0.5.Final, 9.0.0.Final - 9.0.1.Final and 9.1.0.Final - 9.1.4.Final.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea