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

lodash.template security vulnerability #589

Closed
brendanmckeown opened this issue Apr 24, 2024 · 6 comments · Fixed by #599
Closed

lodash.template security vulnerability #589

brendanmckeown opened this issue Apr 24, 2024 · 6 comments · Fixed by #599
Labels
enhancement New feature or request

Comments

@brendanmckeown
Copy link

Describe the bug

A high severity security vulnerability exists in the lodash.template dependency of this project (version 4.5.0). The suggested fix by npm audit is to downgrade the oclif package to v3. The lodash.template dependency does not have a patch, and should probably be replaced by either lodash or lodash-es in this project.

More info: GHSA-35jh-r3h4-6jhm

To Reproduce
Steps to reproduce the behavior:
Run npm audit in a project that uses this package.

Expected behavior
There are no security vulnerabilities.

Screenshots
image

Environment (please complete the following information):

        "@oclif/core": "^3.26.4",
        "@oclif/plugin-help": "^6.0.21",
        "@oclif/plugin-plugins": "^5.0.14",
        "oclif": "^4.8.8",

Additional context
Add any other context about the problem here.

@arnaudbesnier
Copy link

For contributors information

The Lodash documentation encourages people to stop using per-method packages like lodash.findlast and install lodash instead. That won't help for indirect dependencies, but you know, FYI, if you're using lodash.findlast directly, perhaps consider switching to lodash and using _.findlast() that way instead.

lodash/lodash#5832 (comment)

@tiwarishubham635
Copy link
Contributor

tiwarishubham635 commented May 6, 2024

This has been fixed in lodash v4.17.21. Can this be updated here as well? We are waiting for it for our cli project

@mdonnalley mdonnalley added the enhancement New feature or request label May 6, 2024
Copy link

git2gus bot commented May 6, 2024

This issue has been linked to a new work item: W-15692116

@tiwarishubham635
Copy link
Contributor

tiwarishubham635 commented May 9, 2024

@mdonnalley @iowillhoit Thanks for merging this fix! One more thing, you have a dependency on oclif 4.10.2 that also uses lodash.template. They have fixed it in v4.10.5. Can you bump the oclif version as well?

@mdonnalley
Copy link
Contributor

Dependabot runs weekly on all the oclif repos. We'll let that take care of the dependency bump. If you absolutely need the upgrade today, then feel free to make a PR yourself.

@tiwarishubham635
Copy link
Contributor

Sure, I have created this

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

Successfully merging a pull request may close this issue.

4 participants