-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
ReDOS on micromatch/braces (reported on Feb 15th 2019) #7917
Comments
We've upgraded in Jest 24. We won't be releasing a patch for 23 unless there's a huge demand |
create-react-app/react-scripts uses Jest 23 :( |
I'd like to see a patch for Jest 23. Jest 24 has async/timeout issues that prevent us from upgrading. |
Upgrading micromatch is a breaking change (we tried and had to revert: #6661), so I don't think it's possible to upgrade 23.
We haven't changed anything about that (afaik), sounds like a bug |
Okay, thanks for trying! We'll just have to pin what version of braces we use in our project. As for Jest 24, upgrading has resulted in lots of issues for us. Unit tests that have been reliable for months or years now time out randomly. When I first found this (February 7th), I glanced at the Jest issues that were recently opened and these looked similar: There may be other GitHub issues at this point that better describe the problem (I haven't looked lately). We're considering Jest 24 DOA and sticking with version 23 for now. |
Just FYI, the rails community is also stuck on jest 23 for now, because jest 24 drops support for babel 6 and we're still using babel 6, but not for much longer. |
You can use jest 24 with babel 6 but you'll still need a bridge and babel-jest 23 to work properly. I think we have it documented in babel configuration docs on our website |
Thanks! I found this (https://jestjs.io/docs/en/getting-started.html#babel-6) but what is a "bridge"? |
I meant |
You just need the bridge if you want to use babel 7 with jest 22/23, not babel 6. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
I have been noticing https://nodesecurity.io/advisories/786 warnings since yesterday. It looks like braces project had an update (micromatch/braces@abdafb0) to fix the ReDOS issue as well. Is there any chance Jest will update
micromatch/braces
to fix these warnings?To Reproduce
Screenshot from terminal:
Expected behavior
yarn audit
does not report any issues related to https://nodesecurity.io/advisories/786.Link to repl or repo (highly encouraged)
See above.
braces fix link: micromatch/braces@abdafb0
Run
npx envinfo --preset jest
The text was updated successfully, but these errors were encountered: