Skip to main content
VulnerabilityPublished

CVE-2026-59400: Spring Security ClientRegistration discloses OAuth2 Client Secret

Affects Spring SecuritySource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.5 Medium · fixed in 7.1.3 : update Spring Security when convenient.

Data as of 2 Dec 2026, 08:00 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (vmware)CVSS 3.16.5
Patch
Available – fixed in 7.1.3, 7.1.2.1, 7.0.9 +5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
SpringSpring SecurityAffected
  • >=7.1.0 <7.1.3
Fixed in
  • 7.1.3
SpringSpring SecurityAffected
  • >=7.1.0 <7.1.2.1
Fixed in
  • 7.1.2.1
SpringSpring SecurityAffected
  • >=7.0.0 <7.0.9
Fixed in
  • 7.0.9
SpringSpring SecurityAffected
  • >=7.0.0 <7.0.8.1
Fixed in
  • 7.0.8.1
SpringSpring SecurityAffected
  • >=6.5.0 <6.5.13
Fixed in
  • 6.5.13
SpringSpring SecurityAffected
  • >=6.4.0 <6.4.20
Fixed in
  • 6.4.20

AI-suggested

A fix is available in Spring Security versions 7.1.3, 7.1.2.1, 7.0.9, 7.0.8.1, 6.5.13, 6.4.20, 5.8.29, and 5.7.27. Users should upgrade to one of these fixed versions to remediate the vulnerability. Until upgraded, avoid logging or outputting ClientRegistration instances directly to prevent accidental disclosure of client secrets.

Description

CVE-2026-59400 is a vulnerability in Spring Security's ClientRegistration class where the OAuth2 client secret is included in the plaintext output of its toString() method. This can lead to inadvertent disclosure of the client secret through common application behaviors that invoke toString(), such as logging or exception messages. The issue affects multiple versions of Spring Security prior to fixed releases. A fix is available in versions 7.1.3, 7.1.2.1, 7.0.9, 7.0.8.1, 6.5.13, 6.4.20, 5.8.29, and 5.7.27.

References

Community reviews

Loading reviews…