security: force lodash-es 4.18.0 for transitive dependencies#242
Merged
kevincodex1 merged 2 commits intoGitlawb:mainfrom Apr 5, 2026
Merged
security: force lodash-es 4.18.0 for transitive dependencies#242kevincodex1 merged 2 commits intoGitlawb:mainfrom
kevincodex1 merged 2 commits intoGitlawb:mainfrom
Conversation
PR Gitlawb#225 bumped the direct lodash-es dependency to 4.18.0, but @anthropic-ai/sandbox-runtime still pulled lodash-es@4.17.23 via its own ^4.17.23 range. The transitive copy was vulnerable to: - HIGH: Code Injection via _.template (GHSA-r5fr-rjxr-66jc) - MODERATE: Prototype Pollution via _.unset/_.omit (GHSA-f23m-r3pf-42rh) Added overrides field in package.json to force all copies to 4.18.0. bun audit now reports zero vulnerabilities.
lodash-es 4.18.0 is explicitly deprecated by the maintainer with the message "Bad release. Please use lodash-es@4.17.23 instead." Updated both the direct dependency and the override to 4.18.1, which is the latest non-deprecated release that patches the CVEs.
Collaborator
Author
|
Updated: bumped to
|
gnanam1990
approved these changes
Apr 3, 2026
Collaborator
gnanam1990
left a comment
There was a problem hiding this comment.
Clean fix — this completes what PR #225 started. The transitive lodash-es@4.17.23 copy from @anthropic-ai/sandbox-runtime is correctly pinned via overrides and the lockfile confirms it's gone. bun audit
clean, tests passing. Ready to merge.
kevincodex1
approved these changes
Apr 5, 2026
euxaristia
pushed a commit
to euxaristia/openclaude
that referenced
this pull request
Apr 13, 2026
…#242) * security: force lodash-es 4.18.0 for transitive dependencies PR Gitlawb#225 bumped the direct lodash-es dependency to 4.18.0, but @anthropic-ai/sandbox-runtime still pulled lodash-es@4.17.23 via its own ^4.17.23 range. The transitive copy was vulnerable to: - HIGH: Code Injection via _.template (GHSA-r5fr-rjxr-66jc) - MODERATE: Prototype Pollution via _.unset/_.omit (GHSA-f23m-r3pf-42rh) Added overrides field in package.json to force all copies to 4.18.0. bun audit now reports zero vulnerabilities. * fix: use lodash-es 4.18.1 instead of deprecated 4.18.0 lodash-es 4.18.0 is explicitly deprecated by the maintainer with the message "Bad release. Please use lodash-es@4.17.23 instead." Updated both the direct dependency and the override to 4.18.1, which is the latest non-deprecated release that patches the CVEs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Forces all copies of
lodash-es(including transitive) to4.18.0via theoverridesfield inpackage.json, resolving the remaining HIGH severity vulnerability.Problem
PR #225 bumped the direct
lodash-esdependency to4.18.0, but@anthropic-ai/sandbox-runtime@0.0.46declares"lodash-es": "^4.17.23"— Bun resolved this to a separate copy at4.17.23in the lockfile. The vulnerable transitive copy remained:Vulnerabilities:
_.templateimports key names (GHSA-r5fr-rjxr-66jc)_.unset/_.omit(GHSA-f23m-r3pf-42rh)Fix
This forces Bun to resolve ALL
lodash-esranges (including^4.17.23from sandbox-runtime) to4.18.0.Verification
Test plan
bun audit— zero vulnerabilitiesbun test— 13 passbun install— clean install with override applied