Intel

AIKIDO-2026-10042

Microsoft.Identity.Client is vulnerable to Insertion of Sensitive Information into Log File

Insertion of Sensitive Information into Log File Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jan 15, 2026

25

Low Risk

This Affects:

DOTNETMicrosoft.Identity.Client
4.13.0 - 4.80.0
Fixed in 4.81.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

Microsoft.Identity.Client is vulnerable to Insertion of Sensitive Information into Log File in versions 4.13.0 - 4.80.0.

How to fix this

Upgrade the Microsoft.Identity.Client library to the patch version.