CVE-2026-59400Spring Security Insertion of Sensitive Information into Log File
Spring
Vulnerability Summary
Spring Security ClientRegistration discloses OAuth2 Client Secret. 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. Affected artifact: org.springframework.security:spring-security-oauth2-client.
CVSS v3.1 Base Metrics — Score 6.5 (MEDIUM)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone
Affected & Patched Versions
- Spring Security 7.1.0 through 7.1.2
- Spring Security 7.0.0 through 7.0.8
- Spring Security 6.5.0 through 6.5.12
- Spring Security 6.4.0 through 6.4.19
- Spring Security 5.8.0 through 5.8.28
- Spring Security through 5.7.26
- Spring Security 7.1.3 (open source)
- Spring Security 7.0.9 (open source)
- Spring Security 7.1.2.1 (commercial support only)
- Spring Security 7.0.8.1 (commercial support only)
- Spring Security 6.5.13 (commercial support only)
- Spring Security 6.4.20 (commercial support only)
- Spring Security 5.8.29 (commercial support only)
- Spring Security 5.7.27 (commercial support only)
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Spring Security and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 19, 2026Published
- Nov 19, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Spring Security CVEsYou are reading CVE-2026-59400. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://spring.io/security/cve-2026-59400
Data last checked: Nov 24, 2026 20:01 UTC