Skip to content

npm dependent vulnerabilities in .github/contributors/package-lock.json #2288

Open
@sebastien-rosset

Description

@sebastien-rosset

Welcome

  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc).
  • Yes, I've tried with the standalone linter if available. (https://golangci-lint.run/usage/linters/)

Description of the problem

The file .github/contributors/package-lock.json (which is created by npm) has versions of modules that have known security vulnerabilities.

This is how I found the problem:

  1. Created a fork of golangci/golangci-lint at https://github.com/CiscoM31/golangci-lint. Make sure the fork is in sync with upstream master.
  2. Noticed the github banner message: "We found potential security vulnerabilities in your dependencies."
  3. Clicked "enable dependabot" to see dependabot alerts. In the "Security" tab, a new "Dependabot alerts" item is added: https://github.com/CiscoM31/golangci-lint/security/dependabot.
    1. "Get notified when one of your dependencies has a vulnerability".
    2. I've noticed this item is not present in the upstream project "golangci/golangci-lint".
  4. In the fork "Dependabot alerts" shows 11 security alerts.

Maybe I am missing something, but it looks like the same issues are impacting the main project golangci/golangci-lint. npm is created by .github/contributors/package-lock.json and I'm not sure how golangci/golangci-lint uses these dependencies.

It would be good to setup a security policy to provide information on how to report security vulnerabilities.

Version of golangci-lint

$ golangci-lint --version
# Not applicable

Configuration file

$ cat .golangci.yml
# Not applicable

Go environment

$ go version && go env
# Not applicable

Verbose output of running

$ golangci-lint cache clean
$ golangci-lint run -v
# Not applicable

Code example or link to a public repository

// not applicable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions