-
Notifications
You must be signed in to change notification settings - Fork 382
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
npm audit critical dependencies #1187
Labels
status:fixed-next-drop
Issue will be fixed in upcoming release.
Milestone
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
ghost
added
the
Needs: Triage 🔍
label
Apr 14, 2022
Thank you for submitting your first issue to this project. |
AJIXuMuK
added a commit
that referenced
this issue
Apr 19, 2022
"spfx-uifabric-themes" to "^0.9.0" to fix #1187
AJIXuMuK
added
status:fixed-next-drop
Issue will be fixed in upcoming release.
and removed
Needs: Triage 🔍
labels
Apr 19, 2022
Thank you @brianpmccullough for reporting and fixing the issue. |
AJIXuMuK
pushed a commit
that referenced
this issue
Apr 19, 2022
Fix #1187 by bumping "spfx-uifabric-themes" to "^0.9.0". "spfx-uifabric-themes" @ "^0.9.0" removes dependencies that are not needed and that were causing npm audit with critical failure for GHSA-xvch-5gv4-984h.
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your
needs please complete the below template to ensure we have the details to help. Thanks!
Please check out the documentation to see if your question is already addressed there. This will help us ensure our documentation is up to date.
Category
[X] Enhancement
[X] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ 3.7.2 ]
Expected / Desired Behavior / Question
When performing npm audit on our SPFx projects with dependency on this library and in this repo, we now get 4 critical vulnerabilities (consider the Critical vulnerabilities from a security concious enterprise). They appear to stem from the use of spfx-uifabric-themes > node-sass > meow > minimist and are a result of the Prototype Pollution in minimist vulnerability - which as I see is pretty new.
Given that spfx-uifabric-themes appears to be pre-release given it's version, and also that it hasn't received an update in about 2 years, is it appropriate to re-evaluate the use of this dependency in this project?
When I remove the dependency from this solution and perform a build, it looks like it is used in only a few spots (listed below).
Is it a good time to review the use of spfx-uifabric-themes and see if there is another spfx provided way of achieving what this library had been providing? Maybe there is better support for this now natively in SPFx with the recent changes for Theme support? Or perhaps check in with Stefan to see if there is anything that can be done within his project to prevent the vulnerabilities - such as re-evaluating the use of node-sass which also now appears to be deprecated in favor of "Dart Sass"? I am open to discussing in most appropriate repo (Stefan or here) and willing to help in whatever way I can.
I am aware we can npm audit fix on our end, and see what sort of results we get as a result. If this is a good approach, I am open, but that feels like it's only possibly fixing it for my particular situation, rather than for the masses. Also sounds like that's a band-aid approach to something that should be addressed in the library - though I am new(ish) to how Open Source works in these situations?
[16:25:31] Error - [tsc] src/controls/listItemComments/common/IAppContext.ts(1,23): error TS2307: Cannot find module 'spfx-uifabric-themes' or its corresponding type declarations.
[16:25:31] Error - [tsc] src/controls/listItemComments/ListItemComments.tsx(5,23): error TS2307: Cannot find module 'spfx-uifabric-themes' or its corresponding type declarations.
[16:25:31] Error - [tsc] src/controls/listItemComments/ListItemComments.tsx(17,22): error TS2339: Property 'themeState' does not exist on type 'Window & typeof globalThis'.
[16:25:31] Error - [tsc] src/controls/MyTeams/MyTeamsStyles.ts(9,29): error TS2339: Property 'themeState' does not exist on type 'Window & typeof globalThis'.
[16:25:31] Error - [tsc] src/controls/TeamChannelPicker/TeamChannelPicker.tsx(25,22): error TS2339: Property 'themeState' does not exist on type 'Window & typeof globalThis'.
[16:25:31] Error - [tsc] src/controls/TeamChannelPicker/TeamChannelPickerStyles.ts(3,23): error TS2307: Cannot find module 'spfx-uifabric-themes' or its corresponding type declarations.
[16:25:31] Error - [tsc] src/controls/TeamChannelPicker/TeamChannelPickerStyles.ts(12,22): error TS2339: Property 'themeState' does not exist on type 'Window & typeof globalThis'.
[16:25:31] Error - [tsc] src/controls/TeamPicker/TeamPickerStyles.ts(9,23): error TS2307: Cannot find module 'spfx-uifabric-themes' or its corresponding type declarations.
[16:25:31] Error - [tsc] src/controls/TeamPicker/TeamPickerStyles.ts(12,22): error TS2339: Property 'themeState' does not exist on type 'Window & typeof globalThis'.
Observed Behavior
npm audit --audit-level=critical --production
Steps to Reproduce
The text was updated successfully, but these errors were encountered: