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

Command injection vulnerability in lodash #3225

Closed
sergibondarenko opened this issue Jun 2, 2021 · 1 comment · Fixed by #3227
Closed

Command injection vulnerability in lodash #3225

sergibondarenko opened this issue Jun 2, 2021 · 1 comment · Fixed by #3227

Comments

@sergibondarenko
Copy link

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

Overview
lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.

Remediation
Upgrade to version 4.17.21 or later

Resources
CVE https://nvd.nist.gov/vuln/detail/CVE-2021-23337
GitHub Advisory GHSA-35jh-r3h4-6jhm
Snyk Advisory https://snyk.io/vuln/SNYK-JS-LODASH-1040724

@sergibondarenko
Copy link
Author

Ok, it looks like it is not a blocker. The lodash template function is affected by the command injection vulnerability. And the formik doesn't use the template function.

var _ = require('lodash');

_.template('', { variable: '){console.log(process.env)}; with(obj' })()

Details: https://snyk.io/vuln/SNYK-JS-LODASH-1040724

Lodash fix: lodash/lodash@3469357

@kodiakhq kodiakhq bot closed this as completed in #3227 Jun 2, 2021
kodiakhq bot pushed a commit that referenced this issue Jun 2, 2021
Adds `yarn.lock` and `changeset` to #3081 

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

Successfully merging a pull request may close this issue.

1 participant