magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.53k stars 9.31k forks source link

npm audit critical vulnerabilities #36254

Open bramvanderholst opened 2 years ago

bramvanderholst commented 2 years ago

Preconditions and environment

Magento version 2.4.x (and, as the relevant package is unchanged in 2.5 dev, probably also in 2.5)

Steps to reproduce

  1. Make sure the package.json is up to date with https://github.com/magento/magento2/blob/2.4-develop/package.json.sample
  2. run npm i

Expected result

No (critical) vulnerabilities in npm dependencies

Actual result

2 critical vulnerabilities, both coming from grunt-styledocco@0.3.0

minimist < 1.2.6: https://github.com/advisories/GHSA-xvch-5gv4-984h

├─┬ grunt-styledocco@0.3.0
│ └─┬ styledocco@0.6.6
│   └─┬ optimist@0.6.1
│     └── minimist@0.0.10

uglify-js < 2.4.24: https://github.com/advisories/GHSA-34r7-q49f-h37c

├─┬ grunt-styledocco@0.3.0
│ └─┬ styledocco@0.6.6
│   └── uglify-js@1.2.6

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 2 years ago

Hi @bramvanderholst. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Bravo commented 1 year ago

Hi @bramvanderholst,

Thank you for reporting and collaboration. Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

package.json is up to date

Screenshot 2022-12-19 at 4 54 26 PM

After running npm i we got below Warnings.

Screenshot 2022-12-19 at 4 42 13 PM

Please let us know if we are missing any thing.

Thanks.

bramvanderholst commented 1 year ago

At the end of the npm i output, it shows the following. (Not sure where the third critical is suddenly coming from..) Screenshot 2022-12-19 at 15 36 59 As the output suggests, run npm audit for more details. I can also recommend the following package for a more detailed overview: https://www.npmjs.com/package/better-npm-audit

engcom-Bravo commented 1 year ago

Hi @bramvanderholst,

Thanks for your Update.

Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots.

Steps to reproduce

1.Make sure the package.json is up to date with https://github.com/magento/magento2/blob/2.4-develop/package.json.sample 2.run npm i

Screenshot 2022-12-19 at 4 54 26 PM

3 critical vulnerabilities

Screenshot 2022-12-20 at 11 07 31 AM

Hence confirming this issue.

Thanks.

github-jira-sync-bot commented 1 year ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-7499 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 year ago

:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

rostilos commented 1 year ago

@magento I am working on this