In Spring AMQP the `RabbitConnectionFactoryBean.setUri("amqps://...")` bypasses secure SSL setup, uses `TrustEverythingTrustManager`

MEDIUM | JUNE 09, 2026 | CVE-2026-41714

Description

Applications that configure their broker connection via RabbitConnectionFactoryBean.setUri("amqps://...") without also calling setUseSSL(true) get TLS encryption with no certificate validation and no hostname verification.

Affected Spring Products and Versions

Spring AMQP:

  • 4.0.0 - 4.0.3
  • 3.2.0 - 3.2.10
  • 3.1.0 - 3.1.15
  • 2.4.17 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
4.0.4OSS
4.0.3.1Enterprise Support Only
3.2.11OSS
3.2.10.1Enterprise Support Only
3.1.16Enterprise Support Only
2.4.18Enterprise Support Only

No further mitigation steps are necessary.

Credit

This issue was discovered internally.

History

  • 2026-06-09: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all