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 #234

Open
wants to merge 1 commit into
base: CircleCI-v2
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:
    • examples/custom-libp2p/package.json

Vulnerabilities that will be fixed

With an upgrade:
Severity Priority Score (*) Issue Breaking Change Exploit Maturity
high severity 823/1000
Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 8.6
Server-side Request Forgery (SSRF)
SNYK-JS-IP-6240864
No Proof of Concept

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

Commit messages
Package name: libp2p The new version differs by 250 commits.
  • d6bb967 chore: release version v0.32.0
  • d48005b chore: update contributors
  • 67b97e3 chore: add migration guide to 0.32 (#957)
  • 664ba2d chore: release version v0.32.0-rc.0
  • 608564b chore: update contributors
  • af723b3 fix: do not allow dial to large number of multiaddrs (#954)
  • 13cf476 chore: update to new multiformats (#948)
  • 39b0358 chore: use libp2p-tcp with types (#952)
  • f7183e8 chore: release version v0.31.7
  • b9988ad chore: update contributors
  • b291bc0 fix: dialer leaking resources after stopping (#947)
  • 755eb90 chore: update gossipsub dep for example
  • afe0f85 chore: use node 16
  • 50f7f32 chore: update branch
  • 052aad4 chore: use node 15 in ci
  • 2c4b567 chore: restructure pubsub tests
  • 2a6a635 chore: remove ipfs-utils dep (#953)
  • cd152f1 chore: add secure websockets example (#930)
  • 2959794 chore: add more details on DHT configuration in CONFIGURATION.md (#951)
  • 2068c84 chore: configuration format fix
  • d8ba284 fix: chat example with new multiaddr (#946)
  • 869d35d chore: release version v0.31.6
  • d6540bf chore: update contributors
  • 478963a feat: keychain rotate passphrase (#944)

See the full diff

Package name: libp2p-kad-dht The new version differs by 150 commits.

See the full diff

Package name: libp2p-mdns The new version differs by 35 commits.

See the full diff

Package name: libp2p-secio The new version differs by 15 commits.

See the full diff

Package name: libp2p-tcp The new version differs by 60 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:

🦉 Server-side Request Forgery (SSRF)

Copy link

google-cla bot commented Feb 11, 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 dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/libp2p-kad-dht@0.19.9 Transitive: environment, eval, filesystem +68 24.2 MB
npm/libp2p-mdns@0.17.0 Transitive: filesystem, network +23 16.1 MB vascosantos
npm/libp2p-secio@0.12.6 Transitive: environment, eval +40 23.3 MB
npm/libp2p-tcp@0.17.2 network +16 1.35 MB vascosantos
npm/libp2p@0.32.5 Transitive: environment, filesystem, network, shell +99 21 MB vascosantos

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/protobufjs@6.11.4
  • Install script: postinstall
  • Source: node scripts/postinstall
HTTP dependency npm/ipfs-utils@8.1.6

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 http dependencies?

Contains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.

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

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/protobufjs@6.11.4
  • @SocketSecurity ignore npm/ipfs-utils@8.1.6

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