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 @0x/dev-utils from 3.3.6 to 5.0.0 #653

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

Conversation

adamlaska
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.

Changes included in this PR

  • Changes to the following files to upgrade the vulnerable dependencies to a fixed version:
    • packages/sol-doc/package.json

Vulnerabilities that will be fixed

With an upgrade:
Severity Priority Score (*) Issue Breaking Change Exploit Maturity
high severity 661/1000
Why? Recently disclosed, Has a fix available, CVSS 7.5
Uncontrolled resource consumption
SNYK-JS-BRACES-6838727
Yes No Known Exploit
high severity 661/1000
Why? Recently disclosed, Has a fix available, CVSS 7.5
Inefficient Regular Expression Complexity
SNYK-JS-MICROMATCH-6838728
Yes No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Commit messages
Package name: @0x/dev-utils The new version differs by 193 commits.

See the full diff

Check the changes in this PR to ensure they won't cause issues with your project.


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

🛠 Adjust project settings

📚 Read more about Snyk's upgrade and patch logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Uncontrolled resource consumption

Copy link

google-cla bot commented May 15, 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/@0x/assert@3.0.36 Transitive: eval, network +29 11 MB tobernguyen
npm/@0x/base-contract@6.5.0 Transitive: environment, eval, filesystem, network, unsafe +47 14.3 MB dorothy-zbornak
npm/@0x/contract-addresses@4.12.0 None 0 74.4 kB dorothy-zbornak
npm/@0x/contract-wrappers@13.23.8 Transitive: environment, eval, filesystem, network, unsafe +49 21.5 MB tobernguyen
npm/@0x/contracts-asset-proxy@3.7.19 Transitive: network +25 20.7 MB dorothy-zbornak
npm/@0x/contracts-erc20@3.3.57 Transitive: environment, eval, filesystem, network, unsafe +46 19.6 MB tobernguyen
npm/@0x/contracts-exchange-libs@4.3.37 Transitive: network +23 9.51 MB dorothy-zbornak
npm/@0x/contracts-exchange@3.2.38 Transitive: network +26 15.8 MB dorothy-zbornak
npm/@0x/contracts-gen@2.0.51 Transitive: filesystem, network +24 9.15 MB tobernguyen
npm/@0x/contracts-test-utils@5.4.60 environment Transitive: eval, filesystem, network, unsafe +68 75.8 MB tobernguyen
npm/@0x/contracts-utils@4.8.52 Transitive: environment, eval, filesystem, network, unsafe +46 18.7 MB tobernguyen
npm/@0x/dev-utils@3.3.6 environment, filesystem Transitive: network +48 10.4 MB dorothy-zbornak
npm/@0x/json-schemas@5.4.1 None 0 88.4 kB dorothy-zbornak
npm/@0x/mesh-rpc-client@7.0.4-beta-0xv3 Transitive: eval, network +24 9.73 MB fberger
npm/@0x/migrations@6.6.0 Transitive: eval, network +49 31.7 MB dorothy-zbornak
npm/@0x/order-utils@10.4.28 Transitive: eval, network +26 10.3 MB dorothy-zbornak
npm/@0x/orderbook@2.2.7 None +2 3.38 MB xianny
npm/@0x/quote-server@3.1.0 network Transitive: environment, eval, filesystem +24 658 kB pirosb3
npm/@0x/sol-compiler@4.8.5 environment, filesystem, network, shell Transitive: eval +31 10.5 MB tobernguyen
npm/@0x/subproviders@6.6.5 Transitive: environment, eval, filesystem, network, shell +83 25.1 MB dorothy-zbornak
npm/@0x/ts-doc-gen@0.0.22 filesystem Transitive: environment, network +19 8.49 MB fberger
npm/@0x/tslint-config@4.1.5 None 0 53.3 kB dekz
npm/@0x/types@3.3.7 None +1 443 kB dekz
npm/@0x/typescript-typings@5.3.2 None +4 2.14 MB dekz
npm/@0x/utils@5.6.4 network +10 6.47 MB dorothy-zbornak
npm/@0x/web3-wrapper@7.6.5 Transitive: eval, network +26 10.2 MB dorothy-zbornak
npm/@balancer-labs/sor@0.3.2 environment Transitive: network +9 60.1 MB mikeraymcdonald
npm/@bancor/sdk@0.2.10 Transitive: environment, eval, filesystem, network +23 5.79 MB yudilevi
npm/@ethersproject/abi@5.7.0 Transitive: network +19 2.09 MB ricmoo
npm/@ethersproject/address@5.7.0 None +6 415 kB ricmoo
npm/@ethersproject/contracts@5.7.0 Transitive: network +18 1.59 MB ricmoo
npm/@ethersproject/providers@5.7.2 network +25 3.4 MB ricmoo
npm/@types/lodash@4.14.104 None 0 607 kB types
npm/@types/mocha@5.2.7 None 0 99 kB types
npm/ansi-regex@4.1.0 None 0 5.14 kB sindresorhus
npm/axios-mock-adapter@1.22.0 None +2 86.6 kB marcbachmann
npm/axios@0.19.2 environment, network +2 420 kB emilyemorehouse
npm/base@0.11.2 None +4 66.7 kB jonschlinkert
npm/braces@2.3.2 None +5 115 kB jonschlinkert
npm/braces@3.0.2 None 0 49.2 kB doowb
npm/cache-base@1.0.1 None 0 16.4 kB jonschlinkert
npm/chai-as-promised@7.1.2 None +1 42.6 kB chaijs
npm/chai-bignumber@3.1.0 None 0 9.27 kB asmarques
npm/chai@4.4.1 None +3 799 kB keithamus
npm/chalk@1.1.3 environment +2 18.7 kB qix
npm/class-utils@0.3.6 None +1 24.2 kB jonschlinkert
npm/cliui@4.1.0 None 0 14.5 kB bcoe
npm/cliui@5.0.0 None 0 14.8 kB bcoe
npm/color-convert@2.0.1 None 0 27.2 kB qix
npm/color-name@1.1.4 None 0 6.69 kB dfcreative
npm/component-emitter@1.3.0 None 0 8 kB nami-doc
npm/cream-sor@0.3.3 environment +1 440 kB akroeger
npm/cross-spawn@5.1.0 environment, filesystem, shell +2 48.1 kB satazor
npm/cross-spawn@6.0.5 environment, filesystem, shell 0 21.4 kB satazor
npm/debug@4.3.4 environment 0 42.4 kB qix
npm/decimal.js@10.4.3 None 0 283 kB mikemcl
npm/decode-uri-component@0.2.0 None 0 5.71 kB samverschueren
npm/define-property@2.0.2 None 0 10.7 kB doowb
npm/detect-file@1.0.0 filesystem 0 8.63 kB doowb
npm/dirty-chai@2.0.1 None 0 20.3 kB joshperry
npm/emoji-regex@8.0.0 None 0 48.3 kB mathias
npm/emojis-list@2.1.0 None 0 42.1 kB kikobeats
npm/end-of-stream@1.4.4 None 0 6.23 kB mafintosh
npm/enhanced-resolve@4.1.0 None 0 87.3 kB sokra
npm/errno@0.1.7 None 0 18 kB ralphtheninja
npm/ethereum-types@3.7.1 None +1 409 kB dekz
npm/execa@0.7.0 environment, shell 0 18.3 kB sindresorhus
npm/fill-range@7.0.1 None +3 49.7 kB jonschlinkert
npm/findup-sync@3.0.0 filesystem 0 6.77 kB phated
npm/get-caller-file@2.0.5 None 0 4.72 kB stefanpenner
npm/global-modules@2.0.0 environment Transitive: filesystem +1 14.8 kB jonschlinkert
npm/global-prefix@1.0.2 environment, filesystem 0 8.59 kB phated
npm/graceful-fs@4.2.2 environment, filesystem 0 27.5 kB isaacs
npm/has-value@1.0.0 None 0 7.62 kB jonschlinkert
npm/has-values@1.0.0 None +3 34.5 kB jonschlinkert
npm/import-local@2.0.0 None 0 3.6 kB sindresorhus
npm/ini@1.3.5 None 0 8.93 kB isaacs
npm/interpret@1.2.0 None 0 14.5 kB phated
npm/is-accessor-descriptor@0.1.6 None +2 26.3 kB jonschlinkert
npm/is-data-descriptor@0.1.4 None +1 12.1 kB jonschlinkert
npm/is-descriptor@0.1.6 None +1 25.4 kB jonschlinkert
npm/is-glob@4.0.1 None 0 11.3 kB phated
npm/is-plain-object@2.0.4 None 0 7.5 kB jonschlinkert
npm/json5@1.0.1 None 0 88.3 kB jordanbtucker
npm/kind-of@6.0.2 None 0 22.5 kB jonschlinkert
npm/loader-utils@1.2.3 None 0 26.9 kB evilebottnawi
npm/locate-path@3.0.0 None 0 3.87 kB sindresorhus
npm/map-age-cleaner@0.1.3 None 0 8.41 kB samverschueren
npm/memory-fs@0.4.1 None 0 13.4 kB sokra
npm/micromatch@3.1.10 None 0 84.8 kB jonschlinkert
npm/minimist@1.2.0 None 0 30.4 kB substack
npm/mixin-deep@1.3.2 None 0 7.22 kB doowb
npm/nanomatch@1.2.13 None 0 86.3 kB jonschlinkert
npm/nice-try@1.0.5 None 0 3.75 kB electerious
npm/npm-run-path@2.0.2 environment 0 4.53 kB sindresorhus
npm/object-visit@1.0.1 None 0 6.7 kB jonschlinkert
npm/object.pick@1.3.0 None 0 6.36 kB phated
npm/os-locale@3.1.0 environment Transitive: shell +5 49 kB sindresorhus
npm/p-defer@1.0.0 None 0 2.94 kB sindresorhus
npm/p-is-promise@2.1.0 None 0 3.57 kB sindresorhus
npm/p-limit@2.2.1 None +1 11.1 kB sindresorhus
npm/process-nextick-args@2.0.1 None 0 3.17 kB cwmma
npm/repeat-element@1.1.3 None 0 5.32 kB jonschlinkert
npm/resolve-cwd@2.0.0 None 0 3.54 kB sindresorhus
npm/resolve-dir@1.0.1 None +1 12.8 kB phated
npm/semver@5.7.1 None 0 61.6 kB isaacs
npm/set-value@2.0.1 None 0 10.3 kB doowb
npm/shebang-command@1.2.0 None 0 2.69 kB kevva
npm/signal-exit@3.0.2 None 0 9.43 kB isaacs
npm/snapdragon-node@2.1.1 None 0 25.8 kB jonschlinkert
npm/source-map-resolve@0.5.2 None 0 84.9 kB lydell
npm/source-map-url@0.4.0 None 0 19.4 kB lydell
npm/string-width@3.1.0 None +1 8.14 kB sindresorhus
npm/strip-ansi@5.2.0 None 0 4.17 kB sindresorhus
npm/strip-eof@1.0.0 None 0 2.64 kB sindresorhus
npm/union-value@1.0.1 None 0 6.83 kB doowb
npm/use@3.1.1 None 0 9.51 kB jonschlinkert
npm/v8-compile-cache@2.0.3 environment, filesystem, unsafe 0 15.9 kB zertosh
npm/webpack-cli@3.3.9 environment, filesystem, shell, unsafe 0 223 kB ev1stensberg
npm/which-module@2.0.0 None 0 4.58 kB nexdrew
npm/wrap-ansi@5.1.0 None 0 9.62 kB sindresorhus
npm/y18n@4.0.0 filesystem 0 10.4 kB nexdrew
npm/yargs-parser@13.1.1 environment +1 64.1 kB bcoe
npm/yargs@13.2.4 environment, filesystem +1 232 kB bcoe

🚮 Removed packages: npm/@types/pluralize@0.0.29, npm/abbrev@1.1.1, npm/arrify@1.0.1, npm/asap@2.0.6, npm/batch@0.6.1, npm/boolbase@1.0.0, npm/bytes@3.0.0, npm/chai-as-promised@7.1.1, npm/chardet@0.7.0, npm/chrome-trace-event@1.0.3, npm/css-to-react-native@3.2.0, npm/decompress-response@3.3.0, npm/depd@1.1.2, npm/discontinuous-range@1.0.0, npm/eventemitter3@3.1.2, npm/eyes@0.1.8, npm/fast-json-stable-stringify@2.0.0, npm/function-bind@1.1.1, npm/get-func-name@2.0.2, npm/glob@7.1.4, npm/has-unicode@2.0.1, npm/hmac-drbg@1.0.1, npm/iconv-lite@0.4.24, npm/ieee754@1.2.1, npm/ignore@4.0.6, npm/inherits@2.0.3, npm/invariant@2.2.4, npm/is-boolean-object@1.1.2, npm/is-generator-fn@2.1.0, npm/is-number-object@1.0.7, npm/is-plain-obj@1.1.0, npm/is-string@1.0.7, npm/is-typedarray@1.0.0, npm/is-utf8@0.2.1, npm/isstream@0.1.2, npm/json-parse-better-errors@1.0.2, npm/json-stringify-safe@5.0.1, npm/lodash.get@4.4.2, npm/lodash.isequal@4.5.0, npm/lowercase-keys@1.0.1, npm/lru-cache@5.1.1, npm/map-obj@1.0.1, npm/minimalistic-crypto-utils@1.0.1, npm/normalize-path@2.1.1, npm/object-assign@4.1.1, npm/os-tmpdir@1.0.2, npm/path-is-absolute@1.0.1, npm/pathval@1.1.1, npm/pify@4.0.1, npm/postcss-value-parser@4.2.0, npm/private@0.1.8, npm/progress@2.0.3, npm/pseudomap@1.0.2, npm/punycode@1.4.1, npm/react-dom@18.3.1, npm/react@18.3.1, npm/reflect-metadata@0.1.13, npm/remove-trailing-separator@1.1.0, npm/requires-port@1.0.0, npm/resolve-from@4.0.0, npm/safer-buffer@2.1.2, npm/sax@1.2.4, npm/scheduler@0.23.2, npm/setprototypeof@1.1.0, npm/sha.js@2.4.11, npm/source-map@0.6.1, npm/stack-trace@0.0.10, npm/strip-json-comments@2.0.1, npm/symbol-observable@1.2.0, npm/throat@4.1.0, npm/through@2.3.8, npm/tmp@0.0.33, npm/tweetnacl@0.14.5, npm/type-detect@4.0.8, npm/unpipe@1.0.0, npm/util@0.12.5, npm/valid-url@1.0.9, npm/vary@1.1.2, npm/whatwg-encoding@1.0.5, npm/wordwrap@0.0.3

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 NoteSource
Install scripts npm/core-js@2.6.12
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"
Install scripts npm/@0x/subproviders@6.6.5
  • Install script: postinstall
  • Source: node -e "try{ fs.unlinkSync(path.resolve(path.dirname(require.resolve('ganache-core')), './typings/index.d.ts')) } catch (err) {}"
Git dependency npm/eth-sig-util@1.4.2
Install scripts npm/@0x/subproviders@8.0.1
Install scripts npm/es5-ext@0.10.64
  • Install script: postinstall
  • Source: node -e "try{require('./_postinstall')}catch(e){}" || exit 0
  • orphan: npm/es5-ext@0.10.64
Protestware/Troll package npm/es5-ext@0.10.64
  • Note: This package prints a protestware console message on install regarding Ukraine for users with Russian language locale
  • orphan: npm/es5-ext@0.10.64
Install scripts npm/core-js-pure@3.37.1
  • Install script: postinstall
  • Source: node -e "try{require('./postinstall')}catch(e){}"

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 are git dependencies?

Contains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.

Publish the git dependency to npm or a private package repository and consume it from there.

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 my 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/@0x/subproviders@6.6.5
  • @SocketSecurity ignore npm/eth-sig-util@1.4.2
  • @SocketSecurity ignore npm/@0x/subproviders@8.0.1
  • @SocketSecurity ignore npm/es5-ext@0.10.64
  • @SocketSecurity ignore npm/core-js-pure@3.37.1

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