Skip to content

prebuild-install should be in package.json's dev dependencies #135

@aedryan

Description

@aedryan

Since prebuild-install is only used during the package install phase, it should be moved to the package.json's dev dependencies. Presently the version of prebuild-install set in this package winds up using an outdated version of ansi-regex which has a DOS vulnerability. Security scanners will pick this up as a vulnerability that would otherwise be ignored if it were properly tagged as a dev dependency instead of a dependency.

Path to vulnerability:

tree-sitter@0.20.1 > prebuild-install@6.1.4 > npmlog@4.1.2 > gauge@2.7.4 > strip-ansi@3.0.1 > ansi-regex@2.1.1

https://security.snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions