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

[Snyk] Fix for 1 vulnerabilities #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamlaska
Copy link
Owner

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-NTHCHECK-1586032
  696  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Regular Expression Denial of Service (ReDoS)

Copy link

google-cla bot commented Aug 10, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/anymatch@3.1.3 None 0 9.65 kB phated
npm/braces@3.0.3 None 0 44.6 kB jonschlinkert
npm/cheerio-select@2.1.0 None +2 353 kB feedic
npm/chokidar@3.6.0 environment, filesystem 0 90.2 kB paulmillr
npm/commander@10.0.1 environment, filesystem, shell 0 174 kB abetomo
npm/fill-range@7.1.1 None 0 16.7 kB jonschlinkert
npm/fsevents@2.3.3 None 0 173 kB pipobscure
npm/glob-parent@5.1.2 None 0 12.1 kB phated
npm/gray-matter@4.0.3 eval, filesystem 0 38.6 kB rmassaioli
npm/lodash.clonedeepwith@4.5.0 None 0 48.5 kB jdalton
npm/metalsmith-prism@4.0.0 None 0 9.67 kB wernerglinka
npm/metalsmith@2.6.3 environment, filesystem +1 149 kB webketje
npm/micromatch@4.0.7 None 0 56.3 kB paulmillr
npm/parse5-htmlparser2-tree-adapter@7.0.0 None +3 808 kB feedic
npm/picomatch@2.3.1 None 0 90 kB mrmlnc
npm/prismjs@1.29.0 None 0 2.05 MB rundevelopment
npm/readdirp@3.6.0 filesystem 0 20.5 kB paulmillr
npm/section-matter@1.0.0 None 0 12.1 kB jonschlinkert
npm/stat-mode@1.0.0 None 0 25.7 kB tootallnate
npm/strip-bom-string@1.0.0 None 0 5.69 kB jonschlinkert
npm/uglify-js@3.3.28 eval, filesystem 0 684 kB alexlamsl

🚮 Removed packages: npm/absolute@0.0.1, npm/ansi-red@0.1.1, npm/ansi-wrap@0.1.0, npm/anymatch@3.1.1, npm/braces@3.0.2, npm/cheerio@0.22.0, npm/chokidar@3.3.0, npm/clipboard@2.0.4, npm/co-from-stream@0.0.0, npm/co-fs-extra@1.2.1, npm/co-read@0.0.1, npm/coffee-script@1.12.7, npm/commander@2.20.0, npm/delegate@3.2.0, npm/enable@1.3.2, npm/fill-range@7.0.1, npm/fs-extra@0.26.7, npm/fsevents@2.1.1, npm/glob-parent@5.1.0, npm/good-listener@1.2.2, npm/gray-matter@2.1.1, npm/has-generators@1.0.1, npm/is@3.3.0, npm/jsonfile@2.4.0, npm/klaw@1.3.1, npm/lodash.assignin@4.2.0, npm/lodash.bind@4.2.1, npm/lodash.defaults@4.2.0, npm/lodash.filter@4.6.0, npm/lodash.flatten@4.4.0, npm/lodash.foreach@4.5.0, npm/lodash.map@4.6.0, npm/lodash.merge@4.6.2, npm/lodash.pick@4.4.0, npm/lodash.reduce@4.6.0, npm/lodash.reject@4.6.0, npm/lodash.some@4.6.0, npm/metalsmith-prism@3.1.1, npm/metalsmith@2.3.0, npm/micromatch@4.0.2, npm/picomatch@2.0.7, npm/prismjs@1.17.1, npm/readdirp@3.2.0, npm/recursive-readdir@2.2.2, npm/select@1.1.2, npm/stat-mode@0.2.2, npm/thunkify-wrap@1.0.4, npm/thunkify@2.1.2, npm/tiny-emitter@2.1.0, npm/toml@2.3.6, npm/unyield@0.0.1, npm/win-fork@1.1.1

View full report↗︎

Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Install scripts npm/metalsmith@2.6.3
  • Install script: postinstall
  • Source: node metalsmith-migrated-plugins.js || exit 0
🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/metalsmith@2.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants