Skip to content
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

[Snyk] Security upgrade moment from 2.29.1 to 2.29.4 #9916

Merged
merged 3 commits into from
Jul 18, 2022

Conversation

flodnv
Copy link
Contributor

@flodnv flodnv commented Jul 14, 2022

These are only bug fixes being brought in so we should be fine: https://github.com/moment/moment/blob/HEAD/CHANGELOG.md

$ https://github.com/Expensify/Expensify/issues/218289
$ https://github.com/Expensify/Expensify/issues/218321


This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.

merge advice

Changes included in this PR

  • Changes to the following files to upgrade the vulnerable dependencies to a fixed version:
    • package.json
    • package-lock.json

Vulnerabilities that will be fixed

With an upgrade:
Severity Priority Score (*) Issue Breaking Change Exploit Maturity
high severity 768/1000
Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 7.5
Regular Expression Denial of Service (ReDoS)
SNYK-JS-MOMENT-2944238
No Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Check the changes in this PR to ensure they won't cause issues with your project.


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report

🛠 Adjust project settings

📚 Read more about Snyk's upgrade and patch logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

@flodnv flodnv requested a review from a team as a code owner July 14, 2022 16:48
@flodnv flodnv self-assigned this Jul 14, 2022
@melvin-bot melvin-bot bot requested review from MonilBhavsar and removed request for a team July 14, 2022 16:48
package.json Show resolved Hide resolved
@flodnv flodnv requested review from chiragsalian and removed request for MonilBhavsar July 14, 2022 16:50
@chiragsalian
Copy link
Contributor

you've got some tests failing. Can you update with main?

@flodnv
Copy link
Contributor Author

flodnv commented Jul 15, 2022

I have merged main, and looked at the failing GH action, and so I ran npm run gh-actions-build locally and I get no diff 😕 I am not sure what's going on here, any ideas @roryabraham ?

@roryabraham
Copy link
Contributor

Weird ... maybe this is a hint?

image

Unmet dependency

@roryabraham
Copy link
Contributor

@flodnv I was able to get the diff locally by doing a clean install from the App directory:

npm list moment                 # you'll see unmet moment dependency
rm -rf node_modules && npm i    # clean install
npm list moment                 # you'll now see that the dependency is met
npm run gh-actions-build        # you'll now see the diff

@flodnv
Copy link
Contributor Author

flodnv commented Jul 18, 2022

Many thanks @roryabraham ! Updated, ready for final review @chiragsalian

Copy link
Contributor

@chiragsalian chiragsalian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chiragsalian chiragsalian merged commit 38639ad into main Jul 18, 2022
@chiragsalian chiragsalian deleted the snyk-fix-389315ff5215443e351a45297687dddd branch July 18, 2022 18:55
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @luacmartins in version: 1.1.85-8 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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

Successfully merging this pull request may close these issues.

5 participants