ipfs fails nsp check
- 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
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 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 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.
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.
Please now track at https://github.com/ipld/js-ipld-zcash/issues/9