fix(deps): upgrade lodash to 4.18.0 (CVE-2026-4800)#98
Open
Conversation
Lodash >=4.0.0 <=4.17.23 is vulnerable to code injection via _.template options.imports key names (GHSA-r5fr-rjxr-66jc, CVSS 8.1). Lodash is a transitive dev dependency via: @stacks/wallet-sdk → @stacks/profile → schema-inspector → async → lodash Added npm overrides to pin lodash >=4.18.0 and updated package-lock.json integrity hashes accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
x402-api-staging | eba21df | Apr 04 2026, 12:35 AM |
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
overridestopackage.jsonto pinlodash >= 4.18.0package-lock.jsonintegrity hash for lodash from 4.17.23 → 4.18.0Vulnerability
CVE-2026-4800 / GHSA-r5fr-rjxr-66jc — High severity (CVSS 8.1)
lodash >= 4.0.0, <= 4.17.23is vulnerable to code injection via_.templatewhen untrusted input is passed asoptions.importskey names. The fix validates import key names using the existingreForbiddenIdentifierCharsregex and replacesassignInWithwithassignWithto prevent prototype-pollution propagation.Context
Lodash is a transitive dev-only dependency (not in production runtime):
Practical risk is low (build-time only,
_.templateunused by this chain), but patching follows standard policy for HIGH severity CVEs.Test plan
npm installinstalls lodash 4.18.0 (checknode_modules/lodash/package.json)npm run checkto verify TypeScript still compiles🤖 Generated with Claude Code