Vulnerabilities in pkg:nuget/Microsoft.Identity.Web
PACKAGECVE-2025-32016 is a MODERATE (CVSS 4.7) microsoft identity web exposes client vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Microsoft.Identity.Web libraries in the NuGet ecosystem. The issue involves microsoft identity web exposes client secrets and certificate information in service logs. Remediation is available by upgrading affected packages to version 3.8.2, 9.0.0.
pkg:nuget/Microsoft.Identity.Web
Vulnerability advisories affecting package pkg:nuget/Microsoft.Identity.Web. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rpq8-q44m-2rpg | CVE-2025-32016 | MODERATE | Microsoft Identity Web Exposes Client Secrets and Certificate Information in Service Logs |
CVE-2025-32016 at a Glance
Security Impact
CVSS: 4.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2025-32016
To remediate this vulnerability, upgrade all affected Microsoft.Identity.Web dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Microsoft.Identity.Web to 3.8.2
Upgrade Microsoft.Identity.Abstractions to 9.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Microsoft.Identity.Web
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-32016, inspect your project dependencies for Microsoft.Identity.Web:
inspect dependencies for Microsoft.Identity.Web
Analyze the terminal output to locate any version of Microsoft.Identity.Web in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.8.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Microsoft.Identity.Web, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-32016 Affected Microsoft.Identity.Web Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Microsoft.Identity.Web
|
NuGet |
≥ 3.2.0
< 3.8.2
|
3.8.2
|
|
Microsoft.Identity.Abstractions
|
NuGet |
≥ 7.1.0
< 9.0.0
|
9.0.0
|
References
Frequently Asked Questions
What is CVE-2025-32016?
Which Microsoft.Identity.Web versions are affected?
What version fixes CVE-2025-32016?
Is Microsoft.Identity.Web affected?
Is Microsoft.Identity.Abstractions affected?
What is the CVSS score of CVE-2025-32016?
What CWE is associated with CVE-2025-32016?
How can I check NuGet dependencies for CVE-2025-32016?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rpq8-q44m-2rpg",
"modified" : "2025-04-09T18:58:35Z",
"published" : "2025-04-09T18:58:35Z",
"aliases" : [ "CVE-2025-32016" ],
"summary" : "Microsoft Identity Web Exposes Client Secrets and Certificate Information in Service Logs",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\n**Description:** This vulnerability affects confidential client applications, including daemons, web apps, and web APIs. Under specific circumstances, sensitive information such as client secrets or certificate details may be exposed in the service logs of these applications. Service logs are intended to be handled securely.\n\n**Impact:** The vulnerability impacts service logs that meet the following criteria:\n\n- **Logging Level:** Logs are generated at the information level.\n- **Credential Descriptions:** containing:\n - Local file paths with passwords.\n - Base64 encoded values.\n - Client secret.\n \nAdditionally, logs of services using Base64 encoded certificates or certificate paths with password credential descriptions are also affected if the certificates are invalid or expired, regardless of the log level. Note that these credentials are not usable due to their invalid or expired status.\n\nIf your service logs are handled securely, you are not impacted. \n\nOtherwise, the following table shows when you can be impacted \n | Log Level Information for Microsoft.Identity.Web | Invalid Certificate\n-- | -- | --\nOne of the ClientCredentials credential description has a CredentialSource = Base64Encoded or (CredentialSource = Path) | Impacted | Impacted\nOne of the ClientCredentials credential description is a Client secret (CredentialSource = ClientSecret) | Impacted | Not impacted\nOther credential descriptions | Not Impacted | Not Impacted\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\nTo mitigate this vulnerability, update to Microsoft.Identity.Web 3.8.2 or Microsoft.Identity.Abstractions 9.0.0.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\nYou can work around the issue in the following ways: \n\n- Ensure that service logs are handled securely and access to logs is restricted\n\n- Don’t use `LogLevel = Information` for the Microsoft.Identity.Web namespace \n\n### Recommendation for production environment\nAvoid using `ClientCredentials` with [`CredentialDescriptions`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.identity.abstractions.credentialdescription.base64encodedvalue?view=msal-model-dotnet-latest) which `CredentialSource` is `ClientSecret`, or `Base64Encoded`, or `Path`. Rather use certificate from KeyVault or a certificate store, or Federation identity credential with Managed identity.\n\n### References\n_Are there any links users can visit to find out more?_",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.Identity.Web"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.0"
}, {
"fixed" : "3.8.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.Identity.Abstractions"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.1.0"
}, {
"fixed" : "9.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/AzureAD/microsoft-identity-web/security/advisories/GHSA-rpq8-q44m-2rpg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32016"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/AzureAD/microsoft-identity-web"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-532" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-09T18:58:35Z",
"nvd_published_at" : "2025-04-09T16:15:24Z"
}
}