Microsoft.Identity.Client is vulnerable to Insertion of Sensitive Information into Log File
25
Low Risk
Affected versions of this package are vulnerable to Information Exposure via Logs due to the MsalServiceException.ToString() method, including sensitive HTTP response headers (such as authentication tokens or API keys) in its string representation. This flaw could allow an attacker with access to application logs, error messages, or debug outputs to retrieve these exposed credentials. By scraping logs or triggering errors, an attacker could capture tokens and use them to impersonate users or gain unauthorized access to protected resources and APIs. The fix removes headers from the ToString() output while keeping the Headers property accessible programmatically to prevent accidental exposure without introducing breaking changes.
You are affected if you are using a version that falls within the vulnerable range.
Microsoft.Identity.Client is vulnerable to Insertion of Sensitive Information into Log File in versions 4.13.0 - 4.80.0.
Upgrade the Microsoft.Identity.Client library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant