AzureAD / microsoft-authentication-library-for-java

Microsoft Authentication Library (MSAL) for Java http://aka.ms/aadv2
MIT License
285 stars 142 forks source link

Bump com.nimbusds.oauth2-oidc-sdk from 11.9.1 to 11.18 #859

Closed crimsonvspurple closed 1 month ago

crimsonvspurple commented 1 month ago

Vulnerabilities from dependencies: CVE-2024-34447 CVE-2024-30172 CVE-2024-30171 CVE-2024-29857

bgavrilMS commented 1 month ago

@Avery-Dunn - why do we need this dependency? Is it to create the client assertion from a certificate for confidential client flows? Maybe in the long run it's better to just have MSAL do that from scratch? It's just a json string + signature.

crimsonvspurple commented 1 month ago

Fully agree with you, remove if possible.

I could not find any PR for this. Shouldn't dependabot open PR for these automatically?

bgavrilMS commented 1 month ago

Fully agree with you, remove if possible.

I could not find any PR for this. Shouldn't dependabot open PR for these automatically?

Yes, I am not sure why Dependabot didn't alert us. The security tab doesn't show these.

Avery-Dunn commented 1 month ago

@bgavrilMS : We use it several places for standard OIDC stuff about tokens, credentials, authorization grants, etc. We could probably remove it, but it would be quite a few code changes. Seems like we have to update this dependency at least once a year, so maybe removing it is worth the effort.

As for why dependabot didn't create a PR for us: the vulnerability is in an optional dependency of oauth2-oidc-sdk, and my best guess is that we don't use the part of oauth2-oidc-sdk that's vulnerable:

Regardless, thanks for letting us know @crimsonvspurple !