fix: override lodash >=4.18.0 to patch code injection vulnerability #120
Reference in New Issue
Block a user
Delete Branch "fix/lodash-cve-ghsa-r5fr-rjxr-66jc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Vulnerability
Test plan
🤖 Generated with Claude Code
Greptile Summary
This PR patches GHSA-r5fr-rjxr-66jc by adding a pnpm
overridesentry that forceslodashto>=4.18.0, which the lockfile resolves to4.18.1. All transitive consumers of lodash (pretty-error,react-dnd,renderkid,html-webpack-plugin) are updated in the lockfile accordingly; the other MUI snapshot key changes are benign peer-dependency re-resolution side effects from re-runningpnpm install.Confidence Score: 5/5
Safe to merge — the override correctly forces lodash to the patched 4.18.1, and the only prior concern (unbounded >= range) was already raised in a previous review comment.
No new P0 or P1 issues remain. The lodash bump is correct and reflected properly in the lockfile. MUI snapshot changes are benign peer-dep re-resolution artifacts.
No files require special attention.
Important Files Changed
overridesentry forlodash: ">=4.18.0"to force the patched version across all transitive deps; other overrides are unchanged.Flowchart
Reviews (8): Last reviewed commit: "ci: re-test original code to verify base..." | Re-trigger Greptile
@@ -38,2 +38,3 @@"flatted": "^3.4.2""flatted": "^3.4.2","lodash": ">=4.18.0"}^4.18.0over>=4.18.0for consistency and safetyAll other overrides in this file (
tar,undici,flatted) use the caret (^) operator to stay within a major version. Using>=4.18.0is unbounded — it would accept lodash 5.x or later if such a version is ever released, which may introduce breaking API changes not accounted for by the plugin.Since the goal is simply to enforce the patched version while staying within the stable 4.x line,
^4.18.0is more appropriate.Prompt To Fix With AI
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
QA + CTO review (stopgap)
CEO authorized me to act as QA for this batch (Regina's adapter is degraded — see PRI-309).
Findings
lodash: '>=4.18.0'(resolves to lodash@4.18.1, current npmlatest).pnpm-lock.yamlcorrectly regenerated; lodash@4.17.23 → lodash@4.18.1 across all transitive consumers.Approving as both QA and CTO. Ready for CEO merge.