Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Security audit fail due to fixed tar dependency #1912

@wbt

Description

@wbt

Issue

Installing the latest truffle-contract produces security audit failures.

Steps to Reproduce

  1. Run npm uninstall truffle-contract
  2. Run npm install truffle-contract
  3. npm reports + [email protected]

Expected Behavior

No more output after that.

Actual Results

npm reports that it found vulnerabilities in the installed package.
npm audit gives details, such as:

High Arbitrary File Overwrite
Package tar
Patched in >=4.4.2
Dependency of truffle-contract
Path truffle-contract > web3 > web3-bzz > swarm-js > tar.gz > tar
More info https://npmjs.com/advisories/803

It looks like this is fixed in web3 v1.0.0-beta.38, so the fix might be just updating the dependency to a later version (also via the truffle-interface-adapter dependency). However, I'm not sure how much else that might break so this is not a well-tested PR.

Environment

  • Operating System: Win 10 Pro
  • node version (node --version): 9.3.0
  • npm version (npm --version): 6.9.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions