Acceptance of Extraneous Untrusted Data With Trusted Data Affecting org.springframework.amqp:spring-amqp package, versions [,4.0.7)[4.1.0-M1,4.1.3)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKAMQP-22732066
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditUnknown

Introduced: 19 Nov 2026

NewCVE-2026-59395  (opens in a new tab)
CWE-349  (opens in a new tab)

How to fix?

Upgrade org.springframework.amqp:spring-amqp to version 4.0.7, 4.1.3 or higher.

Overview

org.springframework.amqp:spring-amqp is a package that provides support for using Spring and Java with AMQP 0.9.1, and in particular RabbitMQ.

Affected versions of this package are vulnerable to Acceptance of Extraneous Untrusted Data With Trusted Data in the SimpleAmqpHeaderMapper class, whose toHeaders() method copies publisher-supplied AMQP headers over the framework-derived amqp_* headers it set from MessageProperties. A publisher able to send messages to a listener can set a header whose name collides with a framework header such as amqp_receivedUserId or amqp_consumerQueue, overwriting the trusted value that @RabbitListener handlers read. Exploitation requires the application to rely on an amqp_* header for authorization or routing decisions.

Workaround

This vulnerability can be avoided by reading the trusted values directly from the MessageProperties of the org.springframework.amqp.core.Message instead of the mapped amqp_* headers.

CVSS Base Scores

version 4.0
version 3.1