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

snyk vulnerability finding with ansi-regex #8177

Open
oceanofmaya opened this issue Sep 13, 2021 · 2 comments
Open

snyk vulnerability finding with ansi-regex #8177

oceanofmaya opened this issue Sep 13, 2021 · 2 comments

Comments

@oceanofmaya
Copy link

Issue type:
[x] question
[ ] bug report
[ ] feature request
[ ] documentation issue

TypeORM version:

[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)

Snyk is reporting an issue with ansi-regex, which is a transitive dependency

Issues with no direct upgrade or patch:
✗ Regular Expression Denial of Service (ReDoS) [High Severity][https://snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908] in ansi-regex@2.1.1
introduced by typeorm@0.2.32 > yargs@16.2.0 > string-width@4.2.0 > strip-ansi@6.0.0 > ansi-regex@5.0.0 and 11 other path(s)
This issue was fixed in versions: 6.0.1

@oceanofmaya
Copy link
Author

Looks like ansi-regex released a patch 5.0.1 and snyk now throws this error for the transitive dependency in my project

Issues with no direct upgrade or patch:
✗ Regular Expression Denial of Service (ReDoS) [High Severity][https://snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908] in ansi-regex@5.0.0
introduced by typeorm@0.2.32 > yargs@16.2.0 > string-width@4.2.0 > strip-ansi@6.0.0 > ansi-regex@5.0.0 and 9 other path(s)
This issue was fixed in versions: 6.0.1, 5.0.1

@oceanofmaya
Copy link
Author

oceanofmaya commented Sep 25, 2021

On the upside there is activity at yargs to try and patch this yargs/yargs#1839 now that string-width, strip-ansi and ansi-regex have patched it already. Once yargs patches it, it should make patching it here easier.

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