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] Upgrade web3 from 1.8.0 to 4.13.0 #1

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

Conversation

HaLaGu1L
Copy link
Owner

@HaLaGu1L HaLaGu1L commented Nov 3, 2024

snyk-top-banner

Snyk has created this PR to upgrade web3 from 1.8.0 to 4.13.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 332 versions ahead of your current version.

  • The recommended version was released on 2 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHPARSE-1077067
63 Proof of Concept
critical severity Improper Verification of Cryptographic Signature
SNYK-JS-ELLIPTIC-7577917
63 Proof of Concept
critical severity Improper Verification of Cryptographic Signature
SNYK-JS-ELLIPTIC-7577918
63 Proof of Concept
high severity Improper Verification of Cryptographic Signature
SNYK-JS-ELLIPTIC-8172694
63 No Known Exploit
high severity Denial of Service (DoS)
SNYK-JS-WS-7266574
63 Proof of Concept
high severity Asymmetric Resource Consumption (Amplification)
SNYK-JS-BODYPARSER-7926860
63 No Known Exploit
high severity Improper Verification of Cryptographic Signature
SNYK-JS-BROWSERIFYSIGN-6037026
63 No Known Exploit
high severity Denial of Service (DoS)
SNYK-JS-DECODEURICOMPONENT-3149970
63 Proof of Concept
high severity Prototype Pollution
SNYK-JS-Y18N-1021887
63 Proof of Concept
high severity Prototype Pollution
SNYK-JS-JSONSCHEMA-1920922
63 No Known Exploit
high severity Prototype Pollution
SNYK-JS-WEB3UTILS-6229337
63 Proof of Concept
high severity Prototype Poisoning
SNYK-JS-QS-3153490
63 Proof of Concept
high severity Improper Validation of Integrity Check Value
SNYK-JS-SECP256K1-8237220
63 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-SEMVER-3247795
63 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-SEMVER-3247795
63 Proof of Concept
high severity Improper Verification of Cryptographic Signature
SNYK-JS-ELLIPTIC-8187303
63 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-ES5EXT-6095076
63 Proof of Concept
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-GETFUNCNAME-5923417
63 Proof of Concept
high severity Remote Code Execution (RCE)
SNYK-JS-HANDLEBARS-1056767
63 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-WS-1296835
63 Proof of Concept
medium severity Uncontrolled Resource Consumption ('Resource Exhaustion')
SNYK-JS-TAR-6476909
63 Proof of Concept
medium severity Cross-site Scripting (XSS)
SNYK-JS-COOKIE-8163060
63 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-UGLIFYJS-1727251
63 No Known Exploit
medium severity Prototype Pollution
SNYK-JS-PATHVAL-596926
63 Proof of Concept
medium severity Open Redirect
SNYK-JS-EXPRESS-6474509
63 No Known Exploit
medium severity Cross-site Scripting
SNYK-JS-EXPRESS-7926867
63 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-HOSTEDGITINFO-1088355
63 Proof of Concept
low severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-WORDWRAP-3149973
63 Proof of Concept
critical severity Improper Verification of Cryptographic Signature
SNYK-JS-ELLIPTIC-7577916
63 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-MINIMATCH-3050818
63 No Known Exploit
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-7925106
63 Proof of Concept
medium severity Prototype Pollution
SNYK-JS-HANDLEBARS-1279029
63 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-HTTPCACHESEMANTICS-3248783
63 Proof of Concept
low severity Regular Expression Denial of Service (ReDoS)
npm:debug:20170905
63 Proof of Concept
low severity Cross-site Scripting
SNYK-JS-SEND-7926862
63 No Known Exploit
low severity Cross-site Scripting
SNYK-JS-SERVESTATIC-7926865
63 No Known Exploit
Release notes
Package name: web3
  • 4.13.0 - 2024-09-18

    What's Changed

    New Contributors

  • 4.12.2-dev.f351e00.0 - 2024-08-23
  • 4.12.2-dev.b86d8ca.0 - 2024-09-09
  • 4.12.2-dev.b3cb1b7.0 - 2024-09-13
  • 4.12.2-dev.a21078b.0 - 2024-09-17
  • 4.12.2-dev.9b32205.0 - 2024-08-28
  • 4.12.2-dev.973ee80.0 - 2024-09-09
  • 4.12.2-dev.7a6e492.0 - 2024-09-05
  • 4.12.2-dev.75df267.0 - 2024-09-09
  • 4.12.2-dev.2f24244.0 - 2024-09-09
  • 4.12.2-dev.27155ea.0 - 2024-09-09
  • 4.12.1 - 2024-08-23

    Hot fix

    [4.12.1]

    Fixed

    web3-eth-accounts

    • Revert TransactionFactory.registerTransactionType if there is a version mistatch between web3-eth and web3-eth-accounts and fix nextjs problem. (#7216)

    What's Changed

  • 4.12.1-dev.e746566.0 - 2024-08-22
  • 4.12.1-dev.0b75589.0 - 2024-08-23
  • 4.12.0 - 2024-08-22

    [4.12.0]

    Fixed

    web3-core

    • setConfig() fix for setMaxListenerWarningThreshold fix (#5079)

    web3-eth-accounts

    • Fix TransactionFactory.registerTransactionType not working, if there is a version mistatch between web3-eth and web3-eth-accounts by saving extraTxTypes at globals. (#7197)

    Added

    web3-eth-accounts

    • Added public function signMessageWithPrivateKey (#7174)

    web3-eth-contract

    • Added populateTransaction to the contract.deploy(...) properties. (#7197)

    web3-providers-http

    • Added statusCode of response in ResponseError, statusCode is optional property in ResponseError.

    web3-rpc-providers

    • Updated rate limit error of QuickNode provider for HTTP transport
    • Added optional HttpProviderOptions | SocketOptions in Web3ExternalProvider and QuickNodeProvider for provider configs

    web3-errors

    • Added optional statusCode property of response in ResponseError.

    Changed

    web3-eth-contract

    • The returnred properties of contract.deploy(...) are structured with a newly created class named DeployerMethodClass. (#7197)
    • Add a missed accepted type for the abi parameter, at dataInputEncodeMethodHelper and getSendTxParams. (#7197)

    What's Changed

    New Contributors

  • 4.11.2-dev.f87ffbe.0 - 2024-08-01
  • 4.11.2-dev.dee14ec.0 - 2024-07-30
  • 4.11.2-dev.d9d0391.0 - 2024-08-20
  • 4.11.2-dev.cbbbd84.0 - 2024-07-24
  • 4.11.2-dev.8b435c1.0 - 2024-08-06
  • 4.11.2-dev.61e9e06.0 - 2024-08-02
  • 4.11.2-dev.60fc197.0 - 2024-08-21
  • 4.11.2-dev.5080e80.0 - 2024-08-02
  • 4.11.2-dev.4f8e8cc.0 - 2024-08-21
  • 4.11.2-dev.2ef694c.0 - 2024-08-21
  • 4.11.2-dev.0db2b18.0 - 2024-08-08
  • 4.11.2-dev.2706805.0 - 2024-08-02
  • 4.11.1 - 2024-07-24

    [4.11.1]

    Fixed

    web3-errors

    • Fixed the undefined data in Eip838ExecutionError constructor (#6905)

    web3-eth

    • Adds transaction property to be an empty list rather than undefined when no transactions are included in the block (#7151)
    • Change method getTransactionReceipt to not be casted as TransactionReceipt to give proper return type (#7159)

    web3

    • Remove redundant constructor of contractBuilder (#7150)

    What's Changed

    New Contributors

    Full Changelog: v4.11.0...v4.11.1

  • 4.11.1-dev.e5efe49.0 - 2024-07-22
  • 4.11.1-dev.cbcfc18.0 - 2024-07-22
  • 4.11.1-dev.9afaa61.0 - 2024-07-16
  • 4.11.1-dev.6b80cf0.0 - 2024-07-12
  • 4.11.1-dev.5f6deeb.0 - 2024-07-22
  • 4.11.1-dev.5ad7e5b.0 - 2024-07-17
  • 4.11.1-dev.463d070.0 - 2024-07-11
  • 4.11.0 - 2024-07-11

    [4.11.0]

    Fixed

    web3-eth-abi

    • fix encodedata in EIP-712 (#7095)

    web3-utils

    • _sendPendingRequests will catch unhandled errors from _sendToSocket (#6968)

    web3-eth

    • Fixed geth issue when running a new instance, transactions will index when there are no blocks created (#7098)

    Changed

    web3-eth-accounts

    • baseTransaction method updated (#7095)

    web3-providers-ws

    • Update dependancies (#7109)

    web3-rpc-providers

    • Change request return type Promise<ResultType> to Promise<JsonRpcResponseWithResult<ResultType>> (#7102)

    Added

    web3-eth-contract

    • populateTransaction was added to contract methods (#7124)
    • Contract has setTransactionMiddleware and getTransactionMiddleware for automatically passing to sentTransaction for deploy and send functions (#7138)

    web3-rpc-providers

    • When error is returned with code 429, throw rate limit error (#7102)

    web3

    • web3.eth.Contract will get transaction middleware and use it, if web3.eth has transaction middleware. (#7138)
  • 4.10.1-dev.89711ab.0 - 2024-07-10
  • 4.10.1-dev.1436228.0 - 2024-07-09
  • 4.10.0 - 2024-06-17

    [4.10.0]

    Added

    web3

    • Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)

    web3-core

    • Now when existing packages are added in web3, will be avalible for plugins via context. (#7088)

    web3-eth

    • sendTransaction in rpc_method_wrappers accepts optional param of TransactionMiddleware (#7088)
    • WebEth has setTransactionMiddleware and getTransactionMiddleware for automatically passing to sentTransaction (#7088)

    web3-eth-ens

    • getText now supports first param Address
    • getName has optional second param checkInterfaceSupport

    web3-types

    • Added result as optional never and error as optional never in type JsonRpcNotification` (#7091)
    • Added JsonRpcNotfication as a union type in JsonRpcResponse (#7091)

    web3-rpc-providers

    • Alpha release

    Fixed

    web3-eth-ens

    • getName reverse resolution

    What's Changed

    Full Changelog: v4.9.0...v4.10.0

  • 4.9.1-dev.fd2982d.0 - 2024-05-23
  • 4.9.1-dev.f687df6.0 - 2024-05-29
  • 4.9.1-dev.b63af9f.0 - 2024-05-30
  • 4.9.1-dev.962b99f.0 - 2024-05-24
  • 4.9.1-dev.9086b98.0 - 2024-05-30
  • 4.9.1-dev.7537f03.0 - 2024-05-23
  • 4.9.1-dev.692987a.0 - 2024-05-24
  • 4.9.1-dev.683be62.0 - 2024-05-28
  • 4.9.1-dev.22c07ad.0 - 2024-05-27
  • 4.9.1-dev.7084665.0 - 2024-05-29
  • 4.9.0 - 2024-05-23

    What's Changed

Snyk has created this PR to upgrade web3 from 1.8.0 to 4.13.0.

See this package in npm:
web3

See this project in Snyk:
https://app.snyk.io/org/halagu1l/project/0e530565-0d9e-4675-95ba-721192fa5bae?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

coderabbitai bot commented Nov 3, 2024

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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

Successfully merging this pull request may close these issues.

2 participants