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 ethereum-waffle from 3.4.4 to 4.0.0 #20

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

Conversation

naiba4
Copy link
Owner

@naiba4 naiba4 commented Mar 29, 2024

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 `yarn` dependencies of this project.

Changes included in this PR

  • Changes to the following files to upgrade the vulnerable dependencies to a fixed version:
    • package.json

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠️ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed

With an upgrade:
Severity Priority Score (*) Issue Breaking Change Exploit Maturity
high severity 159/1000
Why? Confidentiality impact: None, Integrity impact: None, Availability impact: High, Scope: Unchanged, Exploit Maturity: Proof of Concept, User Interaction (UI): None, Privileges Required (PR): None, Attack Complexity: Low, Attack Vector: Network, EPSS: 0.00132, Social Trends: No, Days since published: 722, Reachable: No, Transitive dependency: Yes, Is Malicious: No, Business Criticality: High, Provider Urgency: High, Package Popularity Score: 99, Impact: 5.99, Likelihood: 2.64, Score Version: V5
Prototype Pollution
SNYK-JS-ASYNC-2441827
Yes Proof of Concept
medium severity 63/1000
Why? Confidentiality impact: None, Integrity impact: None, Availability impact: Low, Scope: Unchanged, Exploit Maturity: Proof of Concept, User Interaction (UI): None, Privileges Required (PR): None, Attack Complexity: Low, Attack Vector: Network, EPSS: 0.00231, Social Trends: No, Days since published: 1138, Reachable: No, Transitive dependency: Yes, Is Malicious: No, Business Criticality: High, Provider Urgency: Medium, Package Popularity Score: 99, Impact: 2.35, Likelihood: 2.65, Score Version: V5
Regular Expression Denial of Service (ReDoS)
SNYK-JS-LODASH-1018905
Yes Proof of Concept
high severity 239/1000
Why? Confidentiality impact: High, Integrity impact: High, Availability impact: High, Scope: Unchanged, Exploit Maturity: Proof of Concept, User Interaction (UI): None, Privileges Required (PR): High, Attack Complexity: Low, Attack Vector: Network, EPSS: 0.00606, Social Trends: No, Days since published: 1138, Reachable: No, Transitive dependency: Yes, Is Malicious: No, Business Criticality: High, Provider Urgency: High, Package Popularity Score: 99, Impact: 9.79, Likelihood: 2.43, Score Version: V5
Command Injection
SNYK-JS-LODASH-1040724
Yes Proof of Concept
high severity 160/1000
Why? Confidentiality impact: None, Integrity impact: None, Availability impact: High, Scope: Unchanged, Exploit Maturity: Proof of Concept, User Interaction (UI): None, Privileges Required (PR): None, Attack Complexity: Low, Attack Vector: Network, EPSS: 0.00877, Social Trends: No, Days since published: 481, Reachable: No, Transitive dependency: Yes, Is Malicious: No, Business Criticality: High, Provider Urgency: High, Package Popularity Score: 99, Impact: 5.99, Likelihood: 2.66, Score Version: V5
Prototype Poisoning
SNYK-JS-QS-3153490
Yes Proof of Concept
high severity 169/1000
Why? Confidentiality impact: None, Integrity impact: None, Availability impact: High, Scope: Unchanged, Exploit Maturity: Proof of Concept, User Interaction (UI): None, Privileges Required (PR): None, Attack Complexity: Low, Attack Vector: Network, EPSS: 0.00091, Social Trends: No, Days since published: 283, Reachable: No, Transitive dependency: Yes, Is Malicious: No, Business Criticality: High, Provider Urgency: High, Package Popularity Score: 99, Impact: 5.99, Likelihood: 2.81, Score Version: V5
Regular Expression Denial of Service (ReDoS)
SNYK-JS-SEMVER-3247795
Yes Proof of Concept

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

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:

🦉 Prototype Pollution
🦉 Regular Expression Denial of Service (ReDoS)
🦉 Command Injection

Copy link

codesandbox bot commented Mar 29, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

This PR has 2 quantified lines of changes. In general, a change size of upto 200 lines is ideal for the best PR experience!


Quantification details

Label      : Extra Small
Size       : +1 -1
Percentile : 0.8%

Total files changed: 1

Change summary by file extension:
.json : +1 -1

Change counts above are quantified counts, based on the PullRequestQuantifier customizations.

Why proper sizing of changes matters

Optimal pull request sizes drive a better predictable PR flow as they strike a
balance between between PR complexity and PR review overhead. PRs within the
optimal size (typical small, or medium sized PRs) mean:

  • Fast and predictable releases to production:
    • Optimal size changes are more likely to be reviewed faster with fewer
      iterations.
    • Similarity in low PR complexity drives similar review times.
  • Review quality is likely higher as complexity is lower:
    • Bugs are more likely to be detected.
    • Code inconsistencies are more likely to be detected.
  • Knowledge sharing is improved within the participants:
    • Small portions can be assimilated better.
  • Better engineering practices are exercised:
    • Solving big problems by dividing them in well contained, smaller problems.
    • Exercising separation of concerns within the code changes.

What can I do to optimize my changes

  • Use the PullRequestQuantifier to quantify your PR accurately
    • Create a context profile for your repo using the context generator
    • Exclude files that are not necessary to be reviewed or do not increase the review complexity. Example: Autogenerated code, docs, project IDE setting files, binaries, etc. Check out the Excluded section from your prquantifier.yaml context profile.
    • Understand your typical change complexity, drive towards the desired complexity by adjusting the label mapping in your prquantifier.yaml context profile.
    • Only use the labels that matter to you, see context specification to customize your prquantifier.yaml context profile.
  • Change your engineering behaviors
    • For PRs that fall outside of the desired spectrum, review the details and check if:
      • Your PR could be split in smaller, self-contained PRs instead
      • Your PR only solves one particular issue. (For example, don't refactor and code new features in the same PR).

How to interpret the change counts in git diff output

  • One line was added: +1 -0
  • One line was deleted: +0 -1
  • One line was modified: +1 -1 (git diff doesn't know about modified, it will
    interpret that line like one addition plus one deletion)
  • Change percentiles: Change characteristics (addition, deletion, modification)
    of this PR in relation to all other PRs within the repository.


Was this comment helpful? 👍  :ok_hand:  :thumbsdown: (Email)
Customize PullRequestQuantifier for this repository.

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
Filesystem access npm/rimraf@2.6.3
Unmaintained npm/safer-buffer@2.1.2
  • Last Publish: 4/8/2018, 10:42:42 AM
  • orphan: npm/safer-buffer@2.1.2
Filesystem access npm/pump@3.0.0
  • orphan: npm/pump@3.0.0
Unmaintained npm/pump@3.0.0
  • Last Publish: 1/31/2018, 9:46:35 AM
  • orphan: npm/pump@3.0.0
Deprecated npm/request@2.88.2
  • orphan: npm/request@2.88.2
Environment variable access npm/request@2.88.2
  • orphan: npm/request@2.88.2
Network access npm/request@2.88.2
  • orphan: npm/request@2.88.2
Network access npm/request@2.88.2
  • orphan: npm/request@2.88.2
Network access npm/request@2.88.2
  • orphan: npm/request@2.88.2
Mild CVE npm/request@2.88.2
  • orphan: npm/request@2.88.2
Filesystem access npm/request@2.88.2
  • orphan: npm/request@2.88.2
Unmaintained npm/regex-not@1.0.2
  • Last Publish: 2/20/2018, 2:31:14 AM
Filesystem access npm/snapdragon@0.8.2
Unmaintained npm/snapdragon-node@2.1.1
  • Last Publish: 11/24/2018, 9:18:16 AM
Unmaintained npm/repeat-string@1.6.1
  • Last Publish: 10/23/2016, 4:54:00 PM
Deprecated npm/source-map-resolve@0.5.3
  • Reason: See https://github.com/lydell/source-map-resolve#deprecated
New author npm/set-value@2.0.1
Unmaintained npm/snapdragon-util@3.0.1
  • Last Publish: 1/11/2018, 9:04:26 AM
Unmaintained npm/resolve-url@0.2.1
  • Last Publish: 2/25/2014, 6:48:50 PM
Deprecated npm/resolve-url@0.2.1
  • Reason: https://github.com/lydell/resolve-url#deprecated
Unmaintained npm/randombytes@2.1.0
  • Last Publish: 2/19/2019, 1:48:39 PM
Unmaintained npm/public-encrypt@4.0.3
  • Last Publish: 10/1/2018, 7:47:16 PM
  • orphan: npm/public-encrypt@4.0.3
Unmaintained npm/randomfill@1.0.4
  • Last Publish: 2/16/2018, 1:03:56 PM
  • orphan: npm/randomfill@1.0.4
New author npm/ripemd160@2.0.2
Unmaintained npm/ripemd160@2.0.2
  • Last Publish: 4/19/2018, 6:06:43 AM
Unmaintained npm/sha.js@2.4.11
  • Last Publish: 3/20/2018, 12:35:26 AM
Uses eval npm/regenerator-runtime@0.11.1
  • orphan: npm/regenerator-runtime@0.11.1
Network access npm/raw-body@2.4.0
  • orphan: npm/raw-body@2.4.0
Native code npm/secp256k1@4.0.2
Unmaintained npm/servify@0.1.12
  • Last Publish: 8/3/2017, 7:22:11 AM
  • orphan: npm/servify@0.1.12
CVE npm/qs@6.5.2
  • orphan: npm/qs@6.5.2
Shell access npm/commander@3.0.2
Filesystem access npm/commander@3.0.2
Filesystem access npm/send@0.17.1
  • orphan: npm/send@0.17.1
Network access npm/send@0.17.1
  • orphan: npm/send@0.17.1
CVE npm/simple-get@2.8.1
  • orphan: npm/simple-get@2.8.1
Network access npm/simple-get@2.8.1
  • orphan: npm/simple-get@2.8.1
Network access npm/simple-get@2.8.1
  • orphan: npm/simple-get@2.8.1
Trivial Package npm/set-immediate-shim@1.0.1
  • orphan: npm/set-immediate-shim@1.0.1
Filesystem access npm/rustbn.js@0.2.0
Uses eval npm/rustbn.js@0.2.0
Minified code npm/rustbn.js@0.2.0
New author npm/rustbn.js@0.2.0
Unmaintained npm/safe-event-emitter@1.0.1
  • Last Publish: 10/4/2018, 4:07:39 AM
  • orphan: npm/safe-event-emitter@1.0.1
Deprecated npm/safe-event-emitter@1.0.1
  • Reason: Renamed to @metamask/safe-event-emitter
  • orphan: npm/safe-event-emitter@1.0.1
Unmaintained npm/semaphore@1.1.0
  • Last Publish: 8/8/2017, 4:22:24 PM
New author npm/semaphore@1.1.0
Unmaintained npm/pull-cat@1.1.11
  • Last Publish: 8/9/2016, 10:22:34 AM
Unmaintained npm/pull-defer@0.2.3
  • Last Publish: 8/13/2018, 6:02:02 AM
Unmaintained npm/pull-level@2.0.4
  • Last Publish: 2/11/2018, 6:18:44 PM
Unmaintained npm/pull-live@1.0.1
  • Last Publish: 5/20/2016, 8:50:04 PM
Unmaintained npm/pull-pushable@2.2.0
  • Last Publish: 2/17/2018, 8:50:49 PM
Unmaintained npm/pull-window@2.1.4
  • Last Publish: 5/22/2016, 9:13:23 PM
Unmaintained npm/resumer@0.0.0
  • Last Publish: 5/17/2013, 10:20:55 PM
  • orphan: npm/resumer@0.0.0
New author npm/scryptsy@1.2.1
Uses eval npm/seedrandom@3.0.1

View full report↗︎

Next steps

What is filesystem access?

Accesses the file system, and could potentially read sensitive data.

If a package must read the file system, clarify what it will read and ensure it reads only what it claims to. If appropriate, packages can leave file system access to consumers and operate on data passed to it instead.

What are unmaintained packages?

Package has not been updated in more than 5 years and may be unmaintained. Problems with the package may go unaddressed.

Package should publish periodic maintenance releases if they are maintained, or deprecate if they have no intention in further maintenance.

What is a deprecated package?

The maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.

Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

What is environment variable access?

Package accesses environment variables, which may be a sign of credential stuffing or data theft.

Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is a mild CVE?

Contains a low severity Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known low severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

What is eval?

Package uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.

Avoid packages that use eval, since this could potentially execute any code.

What's wrong with native code?

Contains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs.

Ensure that native code bindings are expected. Consumers may consider pure JS and functionally similar alternatives to avoid the challenges and risks associated with native code bindings.

What is a CVE?

Contains a high severity Common Vulnerability and Exposure (CVE).

Remove or replace dependencies that include known high severity CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

What are trivial packages?

Packages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.

Removing this package as a dependency and implementing its logic will reduce supply chain risk.

What's wrong with minified code?

This package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.

In many cases minified code is harmless, however minified code can be used to hide a supply chain attack. Consider not shipping minified code on npm.

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/rimraf@2.6.3
  • @SocketSecurity ignore npm/safer-buffer@2.1.2
  • @SocketSecurity ignore npm/pump@3.0.0
  • @SocketSecurity ignore npm/request@2.88.2
  • @SocketSecurity ignore npm/regex-not@1.0.2
  • @SocketSecurity ignore npm/snapdragon@0.8.2
  • @SocketSecurity ignore npm/snapdragon-node@2.1.1
  • @SocketSecurity ignore npm/repeat-string@1.6.1
  • @SocketSecurity ignore npm/source-map-resolve@0.5.3
  • @SocketSecurity ignore npm/set-value@2.0.1
  • @SocketSecurity ignore npm/snapdragon-util@3.0.1
  • @SocketSecurity ignore npm/resolve-url@0.2.1
  • @SocketSecurity ignore npm/randombytes@2.1.0
  • @SocketSecurity ignore npm/public-encrypt@4.0.3
  • @SocketSecurity ignore npm/randomfill@1.0.4
  • @SocketSecurity ignore npm/ripemd160@2.0.2
  • @SocketSecurity ignore npm/sha.js@2.4.11
  • @SocketSecurity ignore npm/regenerator-runtime@0.11.1
  • @SocketSecurity ignore npm/raw-body@2.4.0
  • @SocketSecurity ignore npm/secp256k1@4.0.2
  • @SocketSecurity ignore npm/servify@0.1.12
  • @SocketSecurity ignore npm/qs@6.5.2
  • @SocketSecurity ignore npm/commander@3.0.2
  • @SocketSecurity ignore npm/send@0.17.1
  • @SocketSecurity ignore npm/simple-get@2.8.1
  • @SocketSecurity ignore npm/set-immediate-shim@1.0.1
  • @SocketSecurity ignore npm/rustbn.js@0.2.0
  • @SocketSecurity ignore npm/safe-event-emitter@1.0.1
  • @SocketSecurity ignore npm/semaphore@1.1.0
  • @SocketSecurity ignore npm/pull-cat@1.1.11
  • @SocketSecurity ignore npm/pull-defer@0.2.3
  • @SocketSecurity ignore npm/pull-level@2.0.4
  • @SocketSecurity ignore npm/pull-live@1.0.1
  • @SocketSecurity ignore npm/pull-pushable@2.2.0
  • @SocketSecurity ignore npm/pull-window@2.1.4
  • @SocketSecurity ignore npm/resumer@0.0.0
  • @SocketSecurity ignore npm/scryptsy@1.2.1
  • @SocketSecurity ignore npm/seedrandom@3.0.1

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