Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security vulnerability in passport-azure-ad > bunyan > mv > mkdirp > minimist dependency chain #4633

Closed
ydogandjiev opened this issue Mar 27, 2022 · 9 comments
Assignees
Labels
bug A problem that needs to be fixed for the feature to function as intended. dependencies Pull requests that update a dependency file passport-azure-ad Related to the passport-azure-ad library

Comments

@ydogandjiev
Copy link

Core Library

Passport Azure AD (passport-azure-ad)

Core Library Version

4.3.1

Wrapper Library

Not Applicable

Wrapper Library Version

None

Description

The following dependency chaining originating in passport-azure-ad introduces a security vulnerability which is getting flagged by GitHub's Dependabot:
passport-azure-ad > bunyan > mv > mkdirp > minimist

The issue was reported to bunyan a while back but it looks like the project's maintainers have no interest in fixing it (or the resources to do so):
trentm/node-bunyan#667

Can you please consider removing passport-azure-ad's dependency on bunyan in order to eliminate this high severity vulnerability?

image

Error Message

No response

Msal Logs

No response

MSAL Configuration

N/A

Relevant Code Snippets

N/A

Reproduction Steps

N/A

Expected Behavior

N/A

Identity Provider

Azure AD / MSA

Browsers Affected (Select all that apply)

None (Server)

Regression

No response

Source

Internal (Microsoft)

@ydogandjiev ydogandjiev added bug-unconfirmed A reported bug that needs to be investigated and confirmed question Customer is asking for a clarification, use case or information. labels Mar 27, 2022
@ghost ghost assigned jo-arroyo Mar 27, 2022
@ghost ghost added the Needs: Attention 👋 Awaiting response from the MSAL.js team label Mar 27, 2022
@github-actions github-actions bot added the passport-azure-ad Related to the passport-azure-ad library label Mar 27, 2022
@sameerag
Copy link
Member

@ydogandjiev We are working on a new validation library and hence passport-azure-ad is not being actively updated. However let me check with @jo-arroyo if this security vulnerability will be fixed. We are close to private preview and the preference will be on the new library release to the public asap. cc @EmLauber

@ghost ghost added answered Question has received "first qualified response" Needs: Author Feedback Awaiting response from issue author and removed Needs: Attention 👋 Awaiting response from the MSAL.js team labels Mar 28, 2022
@sameerag
Copy link
Member

sameerag commented Apr 2, 2022

@pkanher617 Assigning to you as you are working on the passport-azure-ad patching up for a few related issues.

@ghost
Copy link

ghost commented Apr 7, 2022

@ydogandjiev This issue has been automatically marked as stale because it is marked as requiring author feedback but has not had any activity for 5 days. If your issue has been resolved please let us know by closing the issue. If your issue has not been resolved please leave a comment to keep this open. It will be closed automatically in 7 days if it remains stale.

@ghost ghost added the no-issue-activity Issue author has not responded in 5 days label Apr 7, 2022
@jasonnutter jasonnutter added bug A problem that needs to be fixed for the feature to function as intended. dependencies Pull requests that update a dependency file labels Apr 8, 2022
@ghost ghost removed bug-unconfirmed A reported bug that needs to be investigated and confirmed question Customer is asking for a clarification, use case or information. answered Question has received "first qualified response" no-issue-activity Issue author has not responded in 5 days Needs: Author Feedback Awaiting response from issue author labels Apr 8, 2022
@erik-neumann
Copy link

We're running into this as well. Various high severity security issues are reported by our code / dependency analysis. This is also affecting almost any of products, and authentication isn't on of the topics where I would say security is minor important or critical. Any idea of a timeline, or is there any workaround we can implement until this is fixed?

@jasonnutter
Copy link
Contributor

jasonnutter commented Apr 12, 2022

I believe this should be addressed if you pick up the latest version of mkdirp, which has been bumped to minimist@1.2.6:

npm ls minimist --prod
passport-azure-ad@4.3.1 microsoft-authentication-library-for-js\maintenance\passport-azure-ad
└─┬ bunyan@1.8.15
  └─┬ mv@2.1.1
    └─┬ mkdirp@0.5.6
      └── minimist@1.2.6

Please regenerate your lock files and confirm, thanks! @ydogandjiev @erik-neumann

@erik-neumann
Copy link

erik-neumann commented Apr 13, 2022

Thanks @jasonnutter for your response. Actually we have multiple packages that seem to contain vulnerabilities.

  • qs-6.5.3
  • async-1.5.2
  • minimist-1.2.5
  • moment-2.29.1
  • node-forge-1.2.1

I tried your approach by referencing the affected packages directly. That resolved some of the issues but not all. Still async and qs is having issues. qs seems to be referenced by request package that is not even been maintained anymore.

@jasonnutter
Copy link
Contributor

@erik-neumann Did removing your node_modules folder and regenerating your lock file address the minimist dependency specifically?

@sameerag sameerag added the tracked-internally Bugs that are tracked by Msft internally label Apr 13, 2022
@sameerag sameerag removed the tracked-internally Bugs that are tracked by Msft internally label Apr 13, 2022
@erik-neumann
Copy link

@jasonnutter yes, minimist was fine then. Issue remains with async and qs referenced by request.

@jasonnutter
Copy link
Contributor

@erik-neumann Thanks for confirming. We are aware of the issues with async and request, so I will close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A problem that needs to be fixed for the feature to function as intended. dependencies Pull requests that update a dependency file passport-azure-ad Related to the passport-azure-ad library
Projects
None yet
Development

No branches or pull requests

6 participants