Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CVE-2021-3807] [ansi-regex] [5.0.0] - Vulnerability on unused npm dependency #302

Closed
Bujupah opened this issue Nov 10, 2021 · 0 comments
Closed

Comments

@Bujupah
Copy link
Contributor

Bujupah commented Nov 10, 2021

Environment:

  • Grafana Image Renderer version: Latest
  • Grafana version: Any
  • OS Grafana Image Renderer is installed on: Any
  • User OS & Browser: Any

What happened:

  • One of the npm packages has a vulnerability...

Description : ansi-regex is vulnerable to Inefficient Regular Expression Complexity
URL : https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3807
Fix Version : 5.0.1
Path: /usr/local/lib/node_modules/npm/node_modules/cli-table3/node_modules/ansi-regex

Suggestion:
Since this vulnerability is coming from npm ? why using a node image that has two package managers ? can't we just get one clean node image and then install Yarn into it?

We can use an image from node:<version>-slim instead of node:<version>-alpine
And then set it up with yarn only, this will solve this vulnerability.

@AgnesToulet AgnesToulet changed the title [CVE-2021-3807] [ansi-regex] [5.0.0] [CVE-2021-3807] [ansi-regex] [5.0.0] - Vulnerability on unused npm dependency Dec 15, 2021
@Bujupah Bujupah closed this as completed Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant