Security issue in ansi-regex dependency (via yargs)
Currently it is impossible to install showdown without pulling in a security vulnerability, because showdown has a tightly versioned dependency on yargs which pulls in a vulnerable ansi-regex.
The security advisory is:
https://github.com/advisories/GHSA-93q8-gq69-wqmw
@jlaine I updated yargs on the master branch. Eventually there will be a 2.0.0 release with this fix.
@SyntaxRules Can this be updated to a new version of the showdown package as well?
@code-by-gijs For sure, I'm trying to work through as much of the backlog I can before releasing- as you can tell there are quite a few issues. It may take a bit before I can get the release out.
@SyntaxRules awesome, thanks!
With some ambitious plans, it looks like the 2.0.0 release could be quite a ways away. Might we be able to just apply the above commits on the last release tag and publish a patch update that handles the vulnerabilities / audit failures before then?
I should also mention that's something I'm willing to do if you want to have me on with the right permissions. I'm also a maintainer on the much more widely used Winston logger for similar reasons.
Even without permissions, I can offer this quickest path route:
This is the commit which fixes the issue, but it's quite a ways ahead of the last release, so I can understand reluctance to do a release from that.
However, the version_1.x branch is only one tiny commit ahead of the release, and a brief inspection demonstrates that's not going to break anything important.
The simplest PR would likely be to update the yargs line on the version_1.x branch, run npm i to update package-lock, and do a patch-level release from that.
I've added a PR which should fix this. It drops support for node v6 and v8, so technically it should probably go out as 2.0.0, with the next big breaking release now being planned going out in n months as 3.0.0. This commit bumps the version number and adds changelog notes you can copy (the source of) that and paste it right into the release notes.
Merge, release on Github, publish to npm, and this issue is solved. Thanks for your work!