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

Update yargs version to avoid CVE-2021-3807 #2435

Closed
yairkukielkazunzunegui opened this issue Apr 28, 2023 · 1 comment · Fixed by #2437
Closed

Update yargs version to avoid CVE-2021-3807 #2435

yairkukielkazunzunegui opened this issue Apr 28, 2023 · 1 comment · Fixed by #2437

Comments

@yairkukielkazunzunegui
Copy link

yairkukielkazunzunegui commented Apr 28, 2023

Problem description

snyk scans are reporting that @grpc/grpc-js@1.8.14 is vulnerable to CVE-2021-3807 because of its dependency to yargs@16.2.0. Please update yargs version to > yargs@17.2.1 so this gets fixed.

Reproduction steps

I ran locally the command snyk test
This is the chain of dependnecies that snyk reported

@grpc/grpc-js@1.8.14 > @grpc/proto-loader@0.7.6 > yargs@16.2.0 > string-width@4.2.2 > strip-ansi@6.0.0 > ansi-regex@5.0.0

This issue was fixed in versions of ansi-regex: 3.0.1, 4.1.1, 5.0.1, 6.0.1
So updating yargs to > yargs@17.2.1 would fix this issue.

Environment

  • Package name and version @grpc/grpc-js@1.8.14 and @grpc/proto-loader@0.7.6

Additional context

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

@murgatroid99
Copy link
Member

I published @grpc/proto-loader version 0.7.7 with an updated dependency on yargs.

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

Successfully merging a pull request may close this issue.

2 participants