get-alex / alex

Catch insensitive, inconsiderate writing
https://alexjs.com
MIT License
4.8k stars 207 forks source link

alex transitively depends on a library with a security problem #319

Closed julienw closed 2 years ago

julienw commented 3 years ago

Subject of the issue

Alex depends on remark-parse with version requirements ^v8.0.0. remark-parse v8 depends on trim v0.0.1. trim v0.0.1 has a regexp-related security problem fixed in v0.0.3, but we can't upgrade it manually because of how semver works.

There are 2 ways to fix this:

For more information, here is the advisory for trim: https://github.com/advisories/GHSA-w5p7-h5w8-2hfq

Steps to reproduce

Run yarn audit or npm audit on a project that depends on alex.

Thanks!

wooorm commented 3 years ago

This doesn’t really affect alex, or you: it’s quite hard to use alex is a dangerous way.

You could use patch-package to update trim@0.0.1 to trim@1.0.0, which are otherwise identical.

I’m half way in updating all of unified. I’ll update alex in a couple of months!

wooorm commented 2 years ago

This was solved in https://github.com/get-alex/alex/releases/tag/10.0.0