Skip to content

chore(deps): update dependency lodash-es to v4.18.1 [security]#193

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-lodash-es-vulnerability
Open

chore(deps): update dependency lodash-es to v4.18.1 [security]#193
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-lodash-es-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
lodash-es (source) 4.17.214.18.1 age confidence

Lodash has Prototype Pollution Vulnerability in _.unset and _.omit functions

CVE-2025-13465 / GHSA-xxjr-mmjv-4gpg

More information

Details

Impact

Lodash versions 4.0.0 through 4.17.22 are vulnerable to prototype pollution in the _.unset and _.omit functions. An attacker can pass crafted paths which cause Lodash to delete methods from global prototypes.

The issue permits deletion of properties but does not allow overwriting their original behavior.

Patches

This issue is patched on 4.17.23.

Severity

  • CVSS Score: 6.9 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:H/SI:H/SA:H/E:P

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


lodash vulnerable to Prototype Pollution via array path bypass in _.unset and _.omit

CVE-2026-2950 / GHSA-f23m-r3pf-42rh

More information

Details

Impact

Lodash versions 4.17.23 and earlier are vulnerable to prototype pollution in the _.unset and _.omit functions. The fix for CVE-2025-13465 only guards against string key members, so an attacker can bypass the check by passing array-wrapped path segments. This allows deletion of properties from built-in prototypes such as Object.prototype, Number.prototype, and String.prototype.

The issue permits deletion of prototype properties but does not allow overwriting their original behavior.

Patches

This issue is patched in 4.18.0.

Workarounds

None. Upgrade to the patched version.

Severity

  • CVSS Score: 6.5 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


lodash vulnerable to Code Injection via _.template imports key names

CVE-2026-4800 / GHSA-r5fr-rjxr-66jc

More information

Details

Impact

The fix for CVE-2021-23337 added validation for the variable option in _.template but did not apply the same validation to options.imports key names. Both paths flow into the same Function() constructor sink.

When an application passes untrusted input as options.imports key names, an attacker can inject default-parameter expressions that execute arbitrary code at template compilation time.

Additionally, _.template uses assignInWith to merge imports, which enumerates inherited properties via for..in. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function().

Patches

Users should upgrade to version 4.18.0.

The fix applies two changes:

  1. Validate importsKeys against the existing reForbiddenIdentifierChars regex (same check already used for the variable option)
  2. Replace assignInWith with assignWith when merging imports, so only own properties are enumerated
Workarounds

Do not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names.

Severity

  • CVSS Score: 8.1 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

lodash/lodash (lodash-es)

v4.18.1

Compare Source

Bugs

Fixes a ReferenceError issue in lodash lodash-es lodash-amd and lodash.template when using the template and fromPairs functions from the modular builds. See #​6167 (comment)

These defects were related to how lodash distributions are built from the main branch using https://github.com/lodash-archive/lodash-cli. When internal dependencies change inside lodash functions, equivalent updates need to be made to a mapping in the lodash-cli. (hey, it was ahead of its time once upon a time!). We know this, but we missed it in the last release. It's the kind of thing that passes in CI, but fails bc the build is not the same thing you tested.

There is no diff on main for this, but you can see the diffs for each of the npm packages on their respective branches:

v4.18.0

Compare Source

v4.18.0

Full Changelog: lodash/lodash@4.17.23...4.18.0

Security

_.unset / _.omit: Fixed prototype pollution via constructor/prototype path traversal (GHSA-f23m-r3pf-42rh, fe8d32e). Previously, array-wrapped path segments and primitive roots could bypass the existing guards, allowing deletion of properties from built-in prototypes. Now constructor and prototype are blocked unconditionally as non-terminal path keys, matching baseSet. Calls that previously returned true and deleted the property now return false and leave the target untouched.

_.template: Fixed code injection via imports keys (GHSA-r5fr-rjxr-66jc, CVE-2026-4800, 879aaa9). Fixes an incomplete patch for CVE-2021-23337. The variable option was validated against reForbiddenIdentifierChars but importsKeys was left unguarded, allowing code injection via the same Function() constructor sink. imports keys containing forbidden identifier characters now throw "Invalid imports option passed into _.template".

Docs
  • Add security notice for _.template in threat model and API docs (#​6099)
  • Document lower > upper behavior in _.random (#​6115)
  • Fix quotes in _.compact jsdoc (#​6090)
lodash.* modular packages

Diff

We have also regenerated and published a select number of the lodash.* modular packages.

These modular packages had fallen out of sync significantly from the minor/patch updates to lodash. Specifically, we have brought the following packages up to parity w/ the latest lodash release because they have had CVEs on them in the past:

v4.17.23

Compare Source

v4.17.22

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@changeset-bot

changeset-bot Bot commented Jan 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3f9b44d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ellipsis-dev ellipsis-dev Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Skipped PR review on ea28f17 because no changed files had a supported extension. If you think this was in error, please contact us and we'll fix it right away.

@coderabbitai

coderabbitai Bot commented Jan 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@socket-security

socket-security Bot commented Jan 22, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedlodash-es@​4.17.21 ⏵ 4.18.1100 +1100 +1979 +190 +1100

View full report

@github-actions

github-actions Bot commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

📊 Package size report   No changes

File Before After
Total (Includes all files) 93.2 kB 93.2 kB
Tarball size 18.6 kB 18.6 kB
Unchanged files
File Size
.babelrc 114 B
.browserslistrc 41 B
.changeset/config.json 308 B
.changeset/README.md 510 B
.codesanbox/ci.json 76 B
.commitlintrc 35 B
.editorconfig 145 B
.eslintignore 95 B
.eslintrc 389 B
.github/workflows/ci.yml 723 B
.github/workflows/codeql.yml 852 B
.github/workflows/pkg-size.yml 474 B
.github/workflows/release.yml 1.1 kB
.lintstagedrc.cjs 54 B
.postcssrc.cjs 51 B
.prettierignore 16 B
.prettierrc 31 B
.remarkrc 42 B
.renovaterc 49 B
.simple-git-hooks.cjs 51 B
.stylelintignore 92 B
.stylelintrc 96 B
.vitepress/components/index.ts 191 B
.vitepress/components/VueQrcodeDemo.vue 5.7 kB
.vitepress/components/VueQriousDemo.vue 3.4 kB
.vitepress/components/VueResizorDemo.vue 658 B
.vitepress/config.ts 310 B
.vitepress/theme/index.ts 337 B
CHANGELOG.md 280 B
index.md 6.6 kB
LICENSE 1.1 kB
package.json 2.2 kB
packages/vue-qrcode/CHANGELOG.md 5.2 kB
packages/vue-qrcode/index.md 5.3 kB
packages/vue-qrcode/index.ts 3.3 kB
packages/vue-qrcode/package.json 1.0 kB
packages/vue-qrcode/README.md 5.5 kB
packages/vue-qrcode/tsconfig.json 139 B
packages/vue-qrious/CHANGELOG.md 4.6 kB
packages/vue-qrious/index.md 4.5 kB
packages/vue-qrious/index.ts 1.1 kB
packages/vue-qrious/package.json 1.1 kB
packages/vue-qrious/qrious.d.ts 472 B
packages/vue-qrious/README.md 4.5 kB
packages/vue-qrious/tsconfig.json 174 B
packages/vue-qrious/typings.d.ts 46 B
packages/vue-resizor/CHANGELOG.md 800 B
packages/vue-resizor/index.md 4.0 kB
packages/vue-resizor/package.json 1.2 kB
packages/vue-resizor/README.md 4.0 kB
packages/vue-resizor/src/bem.ts 635 B
packages/vue-resizor/src/helpers.ts 1.9 kB
packages/vue-resizor/src/index.ts 141 B
packages/vue-resizor/src/Resizor.tsx 8.8 kB
packages/vue-resizor/src/styles.less 691 B
packages/vue-resizor/src/types.ts 358 B
packages/vue-resizor/tsconfig.json 172 B
README.md 6.6 kB
tsconfig.base.json 362 B
tsconfig.json 343 B
vercel.json 124 B

🤖 This report was automatically generated by pkg-size-action

@renovate renovate Bot changed the title chore(deps): update dependency lodash-es to v4.17.23 [security] chore(deps): update dependency lodash-es to v4.17.23 [security] - autoclosed Mar 27, 2026
@renovate renovate Bot closed this Mar 27, 2026
@renovate
renovate Bot deleted the renovate/npm-lodash-es-vulnerability branch March 27, 2026 05:43
@renovate renovate Bot changed the title chore(deps): update dependency lodash-es to v4.17.23 [security] - autoclosed chore(deps): update dependency lodash-es to v4.17.23 [security] Mar 30, 2026
@renovate renovate Bot reopened this Mar 30, 2026
@renovate
renovate Bot force-pushed the renovate/npm-lodash-es-vulnerability branch 2 times, most recently from ea28f17 to 9777576 Compare March 30, 2026 17:41
@renovate
renovate Bot force-pushed the renovate/npm-lodash-es-vulnerability branch from 9777576 to 3f9b44d Compare April 2, 2026 01:28
@renovate renovate Bot changed the title chore(deps): update dependency lodash-es to v4.17.23 [security] chore(deps): update dependency lodash-es to v4.18.1 [security] Apr 2, 2026
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.

0 participants