- 
                Notifications
    You must be signed in to change notification settings 
- Fork 18
fix: update patch version of form-data to address new critical Snyk vulnerability #88
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
Conversation
| 
 | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, yes plz 🙏
| 
 | 
| Regarding your PR - I do think this makes sense, independently of the test failures. The change forces an update to  
 | 
| Good info Mike, thank you! We do have a workaround in our consumer repo in any case to force form-data to the latest in our package.json, so we're not completely stuck:   "resolutions": {
    "form-data": "4.0.4"
  }, | 
| I believe that your workaround is for Yarn only. In some cases you would be able to resolve the issue simply by uninstalling Cypress and reinstalling. For npm, the command  | 
| These tests are failing on our main branch as well, and may have to do with the lack of a lockfile. I'm investigating so that we can get this merged - thank you for opening it! | 
| 
 These tests have been failing for a long time. See #68. It's not related to any lockfile. @jennifer-shehane is quite aware of this. | 
| 🎉 This PR is included in version 3.0.9 🎉 The release is available on: Your semantic-release bot 📦🚀 | 
| [email protected] has now been published, and this includes @cypress/[email protected] with your change in it. If you update, you shouldn't need your  Thanks for starting the ball rolling on this one! It had quite a (positive) knock-on effect in different places! | 
PR Checklist:
npm testlocally and all tests are passing.PR Description
https://security.snyk.io/vuln/SNYK-JS-FORMDATA-10841150 was identified and published over the weekend. For consumers using cypress, they may see a new critical Snyk vulnerability like
[email protected] › @cypress/[email protected] › [email protected].Updating to the patch version 4.0.4 should fix this issue.
(Similar issue in the wild: axios/axios#6970 )
It seems very likely that there are flaky tests and timeout issues here with the existing tests, as I'm seeing inconsistent failures on
npm testlocally and in the CI. Is this expected?E.g.:
and
CI shows:
It kind of feels like building in some retries would be a good stop gap (not easy with tapjs apparently - tapjs/tapjs#151) or diving into the server logic in those tests to see if it needs to be replaced with something a bit more sophisticated (https://mswjs.io/ would be my vote!).
Both of those are quite a bit outside the scope of this PR, and even with a few different variations of Cursor I wasn't able to get all the tests passing reliably here - so I'm going to pass this back to the Cypress team to decide how much effort they want to invest here to get these working.