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

Dependency update #62

Open
opravil-jan opened this issue Nov 2, 2021 · 2 comments
Open

Dependency update #62

opravil-jan opened this issue Nov 2, 2021 · 2 comments

Comments

@opravil-jan
Copy link

Hi,
can you please update string-width to latest version, because of the vulnerability, please?

Thanks
John

@albertyw
Copy link

If you're referring to

ansi-regex  >2.1.1 <5.0.1
Severity: moderate
 Inefficient Regular Expression Complexity in chalk/ansi-regex - https://github.com/advisories/GHSA-93q8-gq69-wqmw
fix available via `npm audit fix`
node_modules/wide-align/node_modules/ansi-regex
  strip-ansi  4.0.0 - 5.2.0
  Depends on vulnerable versions of ansi-regex
  node_modules/wide-align/node_modules/strip-ansi
    string-width  2.1.0 - 4.1.0
    Depends on vulnerable versions of strip-ansi
    node_modules/wide-align/node_modules/string-width

This is because you're using an older version of wide-align. The most recent version of this package (v1.1.5) doesn't report any vulnerabilities. You can check for yourself if you clone the repository, delete the .npmrc to allow generation of a package-lock.json, install dependencies with npm install, and run npm audit.

On my system, it seems I had an old version of mocha which was loading an old version of wide-align which still had the above vulnerability.

@kjmph
Copy link

kjmph commented Feb 15, 2022

Using wide-align directly works with no errors. However, the wide-align that gets included by gauge (a dependency of npm) ends up with a transitive dependency on older versions of ansi-regex. I noticed that one can rebuild package-lock.json for npm, and wide-align no longer reports error.. yet this project shows up at the top of the list with the npm's currently committed package-lock.json.

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

3 participants