Skip to content

Fix lodash code injection vulnerability (Dependabot #116)#992

Merged
decyjphr merged 1 commit into
main-enterprisefrom
decyjphr/fix-lodash-dependabot-alert
Jun 5, 2026
Merged

Fix lodash code injection vulnerability (Dependabot #116)#992
decyjphr merged 1 commit into
main-enterprisefrom
decyjphr/fix-lodash-dependabot-alert

Conversation

@decyjphr
Copy link
Copy Markdown
Collaborator

@decyjphr decyjphr commented Jun 5, 2026

Dependabot alert #116 flagged a high-severity code injection vulnerability in lodash's _.template function that allows attackers to inject arbitrary code through crafted import key names. The fix requires lodash >= 4.18.0.

This PR updates the lodash dependency from ^4.17.21 to ^4.18.1 (the latest patched release) and regenerates the lockfile to ensure the resolved version is 4.18.1.

Resolve Dependabot alert #116 - lodash vulnerable to Code Injection
via `_.template` imports key names. Updated from ^4.17.21 to ^4.18.1.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 5, 2026 20:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the project’s lodash dependency to remediate Dependabot alert #116 (high-severity code injection risk in _.template related to crafted imports key names), ensuring installs resolve to a patched lodash release.

Changes:

  • Bump lodash from ^4.17.21 to ^4.18.1 in package.json.
  • Regenerate package-lock.json so the resolved lodash package is pinned to 4.18.1.
Show a summary per file
File Description
package.json Updates the lodash dependency range to a patched release.
package-lock.json Updates the resolved lodash package metadata to 4.18.1 to ensure installs use the fixed version.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/2 changed files
  • Comments generated: 0

@decyjphr decyjphr merged commit db9d78c into main-enterprise Jun 5, 2026
6 checks passed
@decyjphr decyjphr deleted the decyjphr/fix-lodash-dependabot-alert branch June 5, 2026 20:18
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.

2 participants