CVE-2026-59400 PUBLISHED

Spring Security ClientRegistration discloses OAuth2 Client Secret

Assigner: vmware
Reserved: 04.07.2026 Published: 02.12.2026 Updated: 02.12.2026

ClientRegistration , Spring Security's representation of an OAuth2/OpenID Connect client registration, includes the confidential client secret in the plaintext output of its toString() method.

Because toString() is invoked implicitly by common application and framework behaviors (parameterized logging, string concatenation, exception message construction, and similar), any code path that produces such output for a ClientRegistration instance may inadvertently disclose the client secret to a destination not intended to hold client credential material.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS Score: 6.5

Product Status

Vendor Spring
Product Spring Security
Versions
  • affected from 7.1.0 to 7.1.2.1 (excl.)
  • affected from 7.0.0 to 7.0.8.1 (excl.)
  • affected from 6.5.0 to 6.5.13 (excl.)
  • affected from 6.4.0 to 6.4.20 (excl.)
  • affected from 5.8.0 to 5.8.29 (excl.)
  • affected from 0 to 5.7.27 (excl.)
  • affected from 7.1.0 to 7.1.3 (excl.)
  • affected from 7.0.0 to 7.0.9 (excl.)

Credits

  • The issue was identified and responsibly reported by Yu Bao from PayPal Cybersecurity Team.

References