CVE-2026-59405
Spring Integration XMPP Connection Factory Allows STARTTLS Stripping Due to Insecure Default Security Mode
Description
The XmppConnectionFactoryBean in Spring Integration XMPP builds an XMPPTCPConnectionConfiguration without setting a security mode, so Smack's default of SecurityMode.ifpossible applies. TLS is then negotiated only if the server advertises STARTTLS. Because the STARTTLS feature is advertised in the cleartext stream-features stanza, an on-path attacker can remove it, and the client silently continues without encryption. The configured credentials (or the SCRAM exchange) and all later message traffic are then sent in plaintext, which lets the attacker steal credentials and read and inject XMPP messages that the integration flow treats as legitimate.
Applications are affected if they use XmppConnectionFactoryBean to create the XMPP connection, rather than supplying their own XMPPTCPConnectionConfiguration, and an attacker can actively interpose on the network path to the XMPP server.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.integration » spring-integration-xmpp | <= 5.5.22>= 6.4.0, <= 6.4.13>= 6.5.0, <= 6.5.11>= 7.0.0, < 7.0.8>= 7.1.0, < 7.1.3 | 7.0.8, 7.1.3 |
Blast radius
52% of the dependent artifacts (10) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 20 |
| 2 hops | 38 |
| 3 hops | 17 |
Most used dependents
- com.ahome-it » ahome-tooling-server-core6 usages
- be.cumuli.oho » instantiator2 usages
- org.springframework.cloud.fn » spring-xmpp-common2 usages
- org.springframework.cloud.fn » spring-xmpp-consumer2 usages
- org.springframework.cloud.fn » spring-xmpp-supplier2 usages
- be.cumuli.release » release-process1 usages
- com.github.spring-projects.spring-integration-samples » xmpp1 usages
- be.cumuli.oho » cli0 usages
- be.cumuli.release » release-process-pkg0 usages
- com.ahome-it » ahome-tooling-server-hazelcast0 usages
- com.ahome-it » ahome-tooling-server-mongodb0 usages
- com.ahome-it » ahome-tooling-server-rpc0 usages
- com.ahome-it » ahome-tooling-server-sql0 usages
- com.github.spring-projects » spring-integration-samples0 usages
- org.springframework.cloud.stream.app » xmpp-sink-kafka0 usages
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
