Skip to content

security: remove postinstall script in favor of prepublish script #615

Open
@coolaj86

Description

@coolaj86

(socket) [email protected] contains risks:
Install scripts - Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Accept risks of installing these packages (y/N)?

See also: @SocketDev

Feature requests and proposals

The postinstall script will always run, even for deeply nested dependencies.

The prepublish script will run when someone is running npm install from the repo, and before npm publish.

Currently the install script is used to write a message to the screen which is not actually necessary for people who have this as a dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions