cvelo
P4 · InfoCVSS 2.2EPSS 0.3%

Spring Integration XMPP Connection Factory Allows STARTTLS Stripping Due to Insecure Default Security Mode

  • CVE-2026-59405
  • GHSA-2rwq-p2hx-wx6r
  • EUVD-2026-140893

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.

Text from the CVE.org record.

Affected

  • Spring Spring Integration

    • from 7.1.0 to before 7.1.2.1
    • from 7.0.0 to before 7.0.7.1
    • from 6.5.0 to before 6.5.12
    • from 6.4.0 to before 6.4.14
    • before 5.5.23
    • from 7.1.0 to before 7.1.3
    • from 7.0.0 to before 7.0.8

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.