Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Consider upgrading to meow@10 #3188

Closed
mattcollier opened this issue Oct 1, 2021 · 2 comments
Closed

Consider upgrading to meow@10 #3188

mattcollier opened this issue Oct 1, 2021 · 2 comments

Comments

@mattcollier
Copy link

The adventure begins with this vulnerability reported by npm audit

https://www.npmjs.com/advisories/1753

node-sass@6 is using meow@9 which in turn uses trim-newlines@3
https://github.com/sass/node-sass/blob/master/package.json#L63

The meow team is not going to address this in v9.
sindresorhus/meow#195

meow@10 however already uses trim-newlines@4 which addresses this vulnerability
https://github.com/sindresorhus/meow/blob/main/package.json#L54

Is it easily possible to upgrade to meow@10 here?

Thank you!

┌───────────────┬──────────────────────────────────────────────────────────────┐
│ High          │ Regular Expression Denial of Service                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ trim-newlines                                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=3.0.1 <4.0.0 || >=4.0.1                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ bedrock-webpack                                              │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ bedrock-webpack > node-sass > meow > trim-newlines           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/1753                            │
└───────────────┴──────────────────────────────────────────────────────────────┘
@nschonni
Copy link
Contributor

nschonni commented Oct 1, 2021

No, because Meow 10 converted to ESM #3125 (comment)

@nschonni nschonni closed this as completed Oct 1, 2021
@jimmywarting
Copy link
Contributor

jimmywarting commented Oct 5, 2021

No, because Meow 10 converted to ESM

Then we should switch to ESM 😉
or use the dynamic import('meow').then(fn) that also works from cjs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants