Skip to content

security: force lodash-es 4.18.0 for transitive dependencies#242

Merged
kevincodex1 merged 2 commits intoGitlawb:mainfrom
auriti:security/force-lodash-es-override
Apr 5, 2026
Merged

security: force lodash-es 4.18.0 for transitive dependencies#242
kevincodex1 merged 2 commits intoGitlawb:mainfrom
auriti:security/force-lodash-es-override

Conversation

@auriti
Copy link
Copy Markdown
Collaborator

@auriti auriti commented Apr 3, 2026

Summary

Forces all copies of lodash-es (including transitive) to 4.18.0 via the overrides field in package.json, resolving the remaining HIGH severity vulnerability.

Problem

PR #225 bumped the direct lodash-es dependency to 4.18.0, but @anthropic-ai/sandbox-runtime@0.0.46 declares "lodash-es": "^4.17.23" — Bun resolved this to a separate copy at 4.17.23 in the lockfile. The vulnerable transitive copy remained:

@anthropic-ai/sandbox-runtime/lodash-es → lodash-es@4.17.23  ← VULNERABLE

Vulnerabilities:

Fix

"overrides": {
  "lodash-es": "4.18.0"
}

This forces Bun to resolve ALL lodash-es ranges (including ^4.17.23 from sandbox-runtime) to 4.18.0.

Verification

$ bun audit
No vulnerabilities found

Test plan

  • bun audit — zero vulnerabilities
  • bun test — 13 pass
  • bun install — clean install with override applied

auriti added 2 commits April 3, 2026 10:22
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.
@auriti
Copy link
Copy Markdown
Collaborator Author

auriti commented Apr 3, 2026

Updated: bumped to 4.18.1 instead of 4.18.0.

4.18.0 is deprecated by the lodash maintainer (npm view lodash-es@4.18.0 deprecated → "Bad release"). 4.18.1 is the latest non-deprecated release that patches the CVEs. Both the direct dependency and the override now point to 4.18.1. bun audit reports zero vulnerabilities.

Copy link
Copy Markdown
Collaborator

@gnanam1990 gnanam1990 left a comment

Choose a reason for hiding this comment

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

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 kevincodex1 merged commit 3b9893b into Gitlawb:main Apr 5, 2026
1 check passed
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.
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.

3 participants