Insertion of Sensitive Information into Log File Affecting org.springframework.security:spring-security-oauth2-client package, versions [,7.0.9)[7.1.0-M1,7.1.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insertion of Sensitive Information into Log File vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKSECURITY-22730187
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditYu Bao

Introduced: 19 Nov 2026

NewCVE-2026-59400  (opens in a new tab)
CWE-532  (opens in a new tab)

How to fix?

Upgrade org.springframework.security:spring-security-oauth2-client to version 7.0.9, 7.1.3 or higher.

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File in the ClientRegistration class, whose toString() method includes the confidential OAuth2 client secret in plaintext. The secret leaks to unintended destinations such as log files or error responses whenever a ClientRegistration is logged, concatenated into a string, or embedded in an exception message, since each implicitly calls toString(). Exposure requires a code path that renders a ClientRegistration instance to a destination not meant to hold client credentials.

CVSS Base Scores

version 4.0
version 3.1