cli icon indicating copy to clipboard operation
cli copied to clipboard

Update strip-ansi due to security vulnerability about ansi-regex(v4.1.0)

Open jcoyne opened this issue 3 years ago • 4 comments

Description

The cli package specifies strip-ansi 5.2.0. This version pulls in a vulnerable version of ansi-regex. Can strip-ansi be upgraded to 6.x or 7.x?

https://github.com/react-native-community/cli/blob/master/packages/cli/package.json#L55

See:

  • https://github.com/jest-community/jest-junit/pull/188
  • https://github.com/chalk/strip-ansi/issues/40

jcoyne avatar Nov 15 '21 15:11 jcoyne

Feel free to submit a PR with a fix. I'd be happy to merge it :)

thymikee avatar Nov 15 '21 16:11 thymikee

@thymikee I don't actually use react-native, it only ended up in my bundle by way of a indirect dependency (https://github.com/aws-amplify/amplify-js/issues/9119). So, while I can make this change. I have no way of testing that it still works.

jcoyne avatar Nov 15 '21 16:11 jcoyne

This is due to https://github.com/zamotany/logkitty/issues/32 for https://github.com/react-native-community/cli/blob/master/packages/platform-android/package.json, and due to the use of [email protected] which can be updated to v6.0.1 in https://github.com/react-native-community/cli/blob/master/packages/platform-ios/package.json, and the direct use of [email protected] in https://github.com/react-native-community/cli/blob/master/packages/cli/package.json

tex0l avatar Jan 19 '22 14:01 tex0l

Any updates on this? It's still using 4.1.0 with security vulnerability and ora and ws must also be updatet to a newer version

Brma1048 avatar Mar 25 '22 08:03 Brma1048

There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days.

github-actions[bot] avatar Nov 26 '22 03:11 github-actions[bot]