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] Security upgrade mockttp from 2.7.0 to 3.4.0 #196

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):

  • web3.js/package.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
critical severity Sandbox Bypass
SNYK-JS-VM2-3018201
  816  

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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-VM2-3018201
Copy link

google-cla bot commented Aug 14, 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/@blockworks-foundation/mango-client@3.6.7 Transitive: environment, filesystem, network +28 11.5 MB riordanp
npm/@bonfida/bot@0.5.3 Transitive: environment, filesystem, network +31 124 MB bonfida
npm/@bonfida/spl-name-service@0.1.30 Transitive: environment, filesystem, network +19 40.7 MB bonfida
npm/@cloudflare/stream-react@1.2.0 environment 0 118 kB third774
npm/@metamask/jazzicon@2.0.0 None +5 84.1 kB whymarrh
npm/@metaplex/js@4.12.0 filesystem, network Transitive: environment +18 5.89 MB m-sebastiyan
npm/@popperjs/core@2.11.0 environment 0 1.59 MB fezvrasta
npm/@project-serum/anchor@0.23.0 environment, filesystem, network +5 2.41 MB armaniferrante
npm/@project-serum/serum@0.13.61 None +7 6.03 MB armaniferrante
npm/@react-hook/debounce@4.0.0 None +1 50.6 kB jaredlunde
npm/@sentry/react@7.6.0 Transitive: network +5 1.82 MB sentry-bot
npm/@solana/spl-token-registry@0.2.3736 network +1 12.5 MB bartosz-lipinski
npm/@solana/web3.js@1.50.0 network Transitive: environment, filesystem +9 11.3 MB _chido
npm/@testing-library/jest-dom@5.16.1 Transitive: filesystem +6 607 kB testing-library-bot
npm/@testing-library/react@13.3.0 environment +24 7.98 MB testing-library-bot
npm/@testing-library/user-event@14.2.3 Transitive: environment +24 3.8 MB testing-library-bot
npm/@types/chart.js@2.9.34 None 0 45 kB types
npm/@types/classnames@2.3.1 None 0 1.66 kB types
npm/@types/jest@28.1.4 Transitive: environment +10 456 kB types
npm/@types/node@18.0.3 None 0 1.7 MB types
npm/@types/react-dom@18.0.3 None 0 27.5 kB types
npm/@types/react-router-dom@5.3.2 None +2 36.6 kB types
npm/@types/react-select@3.1.2 None +1 88.5 kB types
npm/@types/react@18.0.8 None +3 1.33 MB types
npm/@types/socket.io-client@3.0.0 None 0 1.7 kB types
npm/bootstrap@5.1.3 None 0 8.65 MB xhmikosr
npm/chart.js@2.9.4 None +4 1.51 MB etimberg
npm/classnames@2.3.1 None 0 17.7 kB dcousens
npm/coingecko-api@1.0.10 network 0 98.7 kB markmiscavage

🚮 Removed packages: npm/@babel/core@7.18.0, npm/@babel/plugin-proposal-class-properties@7.17.12, npm/@babel/plugin-transform-runtime@7.17.0, npm/@babel/preset-env@7.18.0, npm/@babel/preset-typescript@7.16.7, npm/@babel/register@7.17.7, npm/@babel/runtime@7.18.0, npm/@commitlint/config-conventional@17.0.2, npm/@commitlint/travis-cli@17.0.0, npm/@rollup/plugin-alias@3.1.9, npm/@rollup/plugin-babel@5.3.1, npm/@rollup/plugin-commonjs@22.0.0, npm/@rollup/plugin-json@4.1.0, npm/@rollup/plugin-multi-entry@4.1.0, npm/@rollup/plugin-node-resolve@13.2.1, npm/@rollup/plugin-replace@4.0.0, npm/@solana/spl-token@0.2.0, npm/@types/chai-as-promised@7.1.5, npm/@types/express-serve-static-core@4.17.28, npm/@types/mocha@9.1.1, npm/@types/mz@2.7.4, npm/@types/node-fetch@2.6.1, npm/@types/node@17.0.35, npm/@types/secp256k1@4.0.3, npm/@types/sinon-chai@3.2.8, npm/@types/sinon@10.0.11, npm/@typescript-eslint/eslint-plugin@4.33.0, npm/@typescript-eslint/parser@4.33.0, npm/chai-as-promised@7.1.1, npm/codecov@3.8.3, npm/cross-env@7.0.3, npm/eslint-config-prettier@8.5.0, npm/eslint-plugin-import@2.26.0, npm/eslint-plugin-mocha@10.0.4, npm/eslint-plugin-prettier@4.0.0, npm/eslint@7.32.0, npm/esm@3.2.25, npm/fast-stable-stringify@1.0.0, npm/http-server@14.1.0, npm/jayson@3.6.6, npm/js-sha3@0.8.0

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 NoteCI
Install scripts npm/core-js@2.6.12
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
🚫
Install scripts npm/core-js-pure@3.6.5
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
🚫
Install scripts npm/core-js@3.9.0
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
🚫
Install scripts npm/ejs@2.7.4
  • Install script: postinstall
  • Source: node ./postinstall.js
🚫
Protestware/Troll package npm/es5-ext@0.10.53
  • Note: This package prints a protestware console message on install regarding Ukraine for users with Russian language locale
🚫

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.

What is protestware?

This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function.

Consider that consuming this package may come along with functionality unrelated to its primary purpose.

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/core-js@2.6.12
  • @SocketSecurity ignore npm/core-js-pure@3.6.5
  • @SocketSecurity ignore npm/core-js@3.9.0
  • @SocketSecurity ignore npm/ejs@2.7.4
  • @SocketSecurity ignore npm/es5-ext@0.10.53

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