Vulnerabilities in pkg:nuget/Microsoft.Identity.Web

PACKAGE
Advisory Identifier: GHSA-rpq8-q44m-2rpg
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/Microsoft.Identity.Web

1 Known Advisory Record(s)

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

CVE Identifier CVE-2025-32016
GHSA Identifier GHSA-rpq8-q44m-2rpg
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Microsoft.Identity.Web
Package Ecosystem NuGet
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

Microsoft.Identity.Web fixed: 3.8.2
Upgrade Microsoft.Identity.Web to 3.8.2
Microsoft.Identity.Abstractions fixed: 9.0.0
Upgrade Microsoft.Identity.Abstractions to 9.0.0
Verify Direct and Transitive Dependencies

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

### Impact _What kind of vulnerability is it? Who is impacted?_ **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. **Impact:** The vulnerability impacts service logs that meet the following criteria: - **Logging Level:** Logs are generated at the information level. - **Credential Descriptions:** containing: - Local file paths with passwords. - Base64 encoded values. - Client secret. Additionally, 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. If your service logs are handled securely, you are not impacted. Otherwise, the following table shows when you can be impacted   | Log Level Information for Microsoft.Identity.Web | Invalid Certificate -- | -- | -- One of the ClientCredentials credential description has a CredentialSource = Base64Encoded or (CredentialSource = Path) | Impacted | Impacted One of the ClientCredentials credential description is a Client secret (CredentialSource = ClientSecret) | Impacted | Not impacted Other credential descriptions | Not Impacted | Not Impacted ### Patches _Has the problem been patched? What versions should users upgrade to?_ To mitigate this vulnerability, update to Microsoft.Identity.Web 3.8.2 or Microsoft.Identity.Abstractions 9.0.0. ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ You can work around the issue in the following ways: - Ensure that service logs are handled securely and access to logs is restricted - Don’t use `LogLevel = Information` for the Microsoft.Identity.Web namespace ### Recommendation for production environment Avoid 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. ### References _Are there any links users can visit to find out more?_

CVE-2025-32016 Affected Microsoft.Identity.Web Versions

2 component(s)
Fixed Versions:
3.8.29.0.0
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?
CVE-2025-32016 is a security vulnerability in Microsoft.Identity.Web involving Microsoft Identity Web Exposes Client Secrets and Certificate Information in Service Logs under CWE-532: Insertion of Sensitive Information into Log File.
Which Microsoft.Identity.Web versions are affected?
Affected versions include releases prior to 3.8.2, 9.0.0 across affected packages: Microsoft.Identity.Web, Microsoft.Identity.Abstractions.
What version fixes CVE-2025-32016?
Upgrading to 3.8.2, 9.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Microsoft.Identity.Web affected?
Yes, Microsoft.Identity.Web is affected in releases prior to 3.8.2. Upgrade your dependency to 3.8.2 or later.
Is Microsoft.Identity.Abstractions affected?
Yes, Microsoft.Identity.Abstractions is affected in releases prior to 9.0.0. Upgrade your dependency to 9.0.0 or later.
What is the CVSS score of CVE-2025-32016?
CVE-2025-32016 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-32016?
CVE-2025-32016 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check NuGet dependencies for CVE-2025-32016?
Run the dependency tree command: 'inspect dependencies for Microsoft.Identity.Web'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}