js-ipfs icon indicating copy to clipboard operation
js-ipfs copied to clipboard

ipfs fails nsp check

Open jedibojan opened this issue 8 years ago • 5 comments

  • Version: 0.28.2
  • Platform: Win 10

Type: Bug

Severity: Medium

Description: ipfs fails nsp check

Steps to reproduce the error: run nsp check on version 0.28.2

Output in attached file ipfs nsp check.txt

Solution would probably just require deep-extend version update

jedibojan avatar Jun 04 '18 14:06 jedibojan

In version 0.29.3 this is the output:

┌────────────┬────────────────────────────────────────────────────────────────────┐
│            │ Prototype Pollution                                                │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Name       │ lodash                                                             │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ CVSS       │ 2 (Low)                                                            │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Installed  │ 3.10.1                                                             │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Vulnerable │ <4.17.5                                                            │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Patched    │ >=4.17.5                                                           │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Path       │ [email protected] > [email protected] > [email protected] >            │
│            │ [email protected] > [email protected] > [email protected]   │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ More Info  │ https://nodesecurity.io/advisories/577                             │
└────────────┴────────────────────────────────────────────────────────────────────┘

┌────────────┬────────────────────────────────────────────────────────────────────┐
│            │ Prototype Pollution                                                │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Name       │ lodash                                                             │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ CVSS       │ 2 (Low)                                                            │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Installed  │ 3.10.1                                                             │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Vulnerable │ <4.17.5                                                            │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Patched    │ >=4.17.5                                                           │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ Path       │ [email protected] > [email protected] > [email protected] >                     │
│            │ [email protected] > [email protected]                      │
├────────────┼────────────────────────────────────────────────────────────────────┤
│ More Info  │ https://nodesecurity.io/advisories/577                             │
└────────────┴────────────────────────────────────────────────────────────────────┘

ipld-zcash is using zcash-bitcore-lib which is using an old version of lodash, and hasn't been updated in ages.

We could fork zcash-bitcore-lib and updated its deps, but is it worth it? What do you think @vmx?

fsdiogo avatar Jun 11 '18 11:06 fsdiogo

@fsdiogo First step would be to make a PR to zcash-bitcore-lib although chances are low that there will be a new release with it. But at least we can try. Next step would then be doing a fork. Though this kind of starts a more general question of where we would publish this fork? Perhaps under some @ipfs scope?

I'll take action on creating a PR for zcash-bitcore-lib as I'm responsible for ipld-zcash. Tracking issue is https://github.com/ipld/js-ipld-zcash/issues/9

vmx avatar Jun 13 '18 09:06 vmx

@vmx yeah, I excluded the first option in my head as zcash-bitcore-lib hasn't been updated in 2 years, so I doubt it will be released, as you said.

I would say in the @ipld scope, as it's only being used there.

fsdiogo avatar Jun 13 '18 09:06 fsdiogo

Since nsp service is shutting down (https://blog.npmjs.org/post/175511531085/the-node-security-platform-service-is-shutting), and npm is doing security checks from now on, I think that this bug can be closed.

jedibojan avatar Sep 27 '18 11:09 jedibojan

Please now track at https://github.com/ipld/js-ipld-zcash/issues/9

alanshaw avatar Nov 01 '18 20:11 alanshaw