An open index of dependabot pull requests across open source projects.

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

GHSA-r5fr-rjxr-66jc CVE-2026-4800
Description:

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.

Affected Packages
Ecosystem Package Vulnerable Versions Patched Version
npm lodash.template >= 4.0.0, < 4.18.0
4.18.0
npm lodash-amd >= 4.0.0, <= 4.17.23
4.18.0
npm lodash-es >= 4.0.0, <= 4.17.23
4.18.0
npm lodash >= 4.0.0, <= 4.17.23
4.18.0
Related Dependabot Pull Requests
chore(deps): bump the npm_and_yarn group across 1 directory with 13 updates
Closed 3 days ago
ai-shifu/remark-flow #50
npm:@babel/core npm:minimatch +11 more
ai-shifu
Bump the npm_and_yarn group across 1 directory with 9 updates
Closed 4 days ago
JaZo/guess-them-all #52
npm:minimatch npm:lodash +7 more
JaZo
Bump lodash from 4.17.20 to 4.18.1 in /javascript
Open 7 days ago
reverse-proxii/demo #6
npm:lodash
reverse-proxii
Bump lodash from 4.17.15 to 4.18.1 in /samples/express-shop
Closed 12 days ago
GRCSAC/nextfix #14
npm:lodash
GRCSAC
chore(deps): bump the npm_and_yarn group across 15 directories with 14 updates
Open 13 days ago
Sawsqr68/cli. #2
npm:@babel/traverse npm:braces +6 more
Sawsqr68
Bump the npm_and_yarn group across 3 directories with 13 updates
Open 13 days ago
Sawsqr68/workbox #1
npm:webpack npm:serialize-javascript +10 more
Sawsqr68
Bump lodash from 3.10.1 to 4.18.1 in the npm_and_yarn group across 1 directory
Closed 14 days ago
DonnyLi/ralf #3
npm:lodash
DonnyLi
Bump lodash.template from 4.5.0 to 4.18.1 in /test/simple-cli-prj-v3
Closed 14 days ago
handy-common-utils/oclif-utils #6
npm:lodash.template
handy-common-utils
Bump the all-prod group across 1 directory with 7 updates
Closed 16 days ago
midst-press/midst-web #61
npm:lodash npm:@types/lodash +5 more
midst-press
Bump lodash from 4.17.21 to 4.18.1
Closed 17 days ago
MartinDoyleUK/martindoyle-cli #5
npm:lodash
MartinDoyleUK
Bump lodash from 4.17.11 to 4.18.1 in /rmq-playground
Closed 18 days ago
chaudhryjunaid/lang-playground #1
npm:lodash
chaudhryjunaid
Bump lodash and @nestjs/config
Closed 18 days ago
hsanjebri/ksk-scraper #7
npm:lodash npm:@nestjs/config
hsanjebri
chore(deps): bump the npm_and_yarn group across 4 directories with 7 updates
Open 22 days ago
piyyy314/313-cli #143
npm:uuid npm:lodash +4 more
piyyy314
chore(deps): bump the npm_and_yarn group across 1 directory with 11 updates
Closed 22 days ago
zehguilherme/studio-amanda-borges #701
npm:form-data npm:minimatch +9 more
zehguilherme
chore(deps): bump lodash from 4.17.20 to 4.18.1 in /pnpm11/deps/compliance/commands/test/audit/fixtures/workspace-has-vulnerabilities/packages/a
Open 24 days ago
garnet-labs/pnpm #97
npm:lodash
garnet-labs
Bump lodash from 4.17.15 to 4.18.1
Open 24 days ago
chawdamrunal/probe-lab #2
npm:lodash
chawdamrunal
Bump lodash-es from 4.17.21 to 4.18.1 in /js
Open 24 days ago
codereview-benchmark/keycloak__keycloak__tenki__PR40940__20261008 #44
npm:lodash-es
codereview-benchmark
chore(deps): bump the npm_and_yarn group across 1 directory with 17 updates
Open 25 days ago
jmsmuigai/upili-app #1
npm:next npm:nanoid +15 more
jmsmuigai
chore(deps): bump the npm_and_yarn group across 2 directories with 13 updates
Closed 26 days ago
rajivranjanmars/microservices-demo #11
npm:form-data npm:minimatch +10 more
rajivranjanmars
Bump lodash from 4.17.20 to 4.18.1 in /fixtures/scanner-samples
Closed 26 days ago
Tamandua-AppSec/tamandua #13
npm:lodash
Tamandua-AppSec
Bump openapi-sampler from 1.7.2 to 1.7.6
Closed 27 days ago
NameawaShinderu/ubicloud-byoh #259
npm:openapi-sampler
NameawaShinderu
chore(deps): bump the minor-and-patch group across 1 directory with 20 updates
Closed 27 days ago
afairgiant/MediKeep #1127
npm:axios npm:eslint-plugin-react-hooks +18 more
afairgiant
Bump the npm_and_yarn group across 2 directories with 27 updates
Open 27 days ago
RemyLoveLogicAI/bitcoin-mcp #14
npm:@babel/core npm:yaml +11 more
RemyLoveLogicAI
build(deps): bump lodash from 4.17.21 to 4.18.1
Open 29 days ago
myparcelnl/ts-utils #179
npm:lodash
myparcelnl
Bump lodash from 4.17.21 to 4.18.1
Open 29 days ago
atxiii/blog-nextjs #14
npm:lodash
atxiii
Bump the npm_and_yarn group across 1 directory with 6 updates
Closed 29 days ago
mabino/da-gnome #1
npm:ws npm:follow-redirects +4 more
mabino
Bump the npm_and_yarn group across 1 directory with 20 updates
Open 29 days ago
Dargon789/Ethereumjs-Webserver #125
npm:vitest npm:vite +18 more
Dargon789
E: Bump the security group across 1 directory with 2 updates
Open 29 days ago
quatico-solutions/websmith #155
npm:lodash npm:nx
quatico-solutions
build(deps): bump the npm_and_yarn group across 2 directories with 19 updates
Open 30 days ago
RemyLoveLogicAI/Pixel-Agent #18
npm:nanoid npm:@babel/core +14 more
RemyLoveLogicAI
chore(deps): bump the npm_and_yarn group across 2 directories with 5 updates
Closed 30 days ago
RemyLoveLogicAI/AI-Phone-Agent-App #14
npm:minimatch npm:lodash +3 more
RemyLoveLogicAI
Bump lodash-es from 4.17.21 to 4.18.1 in /js
Open about 1 month ago
codereview-benchmark/keycloak__keycloak__tenki-v7__PR37429__20261002 #13
npm:lodash-es
codereview-benchmark
build(deps): bump the npm_and_yarn group across 1 directory with 5 updates
Closed about 1 month ago
Ymmy833y/Agentic-HTML-Visual-Editor #93
npm:lodash-es npm:js-yaml +3 more
Ymmy833y
chore: bump the npm_and_yarn group across 1 directory with 2 updates
Open about 1 month ago
KanishJebaMathewM/Truxify #16920
npm:lodash npm:ip-address
KanishJebaMathewM
build(deps): Bump lodash and n8n-workflow
Closed about 1 month ago
ryabinski-labs/echothread-integrations #3
npm:n8n-workflow npm:Bump lodash
ryabinski-labs
Bump lodash-es from 4.17.21 to 4.18.1 in /js
Open about 1 month ago
Hewline-Ai/keycloak__keycloak__hew__PR36880__20260930 #16
npm:lodash-es
Hewline-Ai
Bump lodash from 4.17.15 to 4.18.1
Closed about 1 month ago
lusqa/blur-face-bot #14
npm:lodash
lusqa
Bump the npm_and_yarn group across 3 directories with 24 updates
Open about 1 month ago
RemyLoveLogicAI/claude-code-templates #13
npm:ws npm:uuid +5 more
RemyLoveLogicAI
ci(deps): bump the npm_and_yarn group across 1 directory with 15 updates
Open about 1 month ago
The-cribgang/eslint-config-fido #1
npm:@babel/core npm:minimatch +13 more
The-cribgang
Bump lodash from 4.17.21 to 4.18.1 in /mcp
Open about 1 month ago
commonwarexyz/monorepo #5013
npm:lodash
commonwarexyz
chore(deps): bump lodash from 4.17.20 to 4.18.1 in /pnpm11/deps/compliance/commands/test/audit/fixtures/workspace-has-vulnerabilities
Open about 1 month ago
Dustin4444/pnpm #624
npm:lodash
Dustin4444
Bump the npm_and_yarn group across 1 directory with 12 updates
Closed about 1 month ago
yonatangross/Kader #6
npm:axios npm:nanoid +10 more
yonatangross
Bump the npm_and_yarn group across 1 directory with 4 updates
Open about 1 month ago
ROhta/managed_explanation #59
npm:mermaid npm:lodash-es +2 more
ROhta
Bump lodash-es from 4.17.21 to 4.18.1 in /js
Open about 1 month ago
NovoaStack/keycloak__keycloak__tenki__PR36880__20260924 #22
npm:lodash-es
NovoaStack
Bump the npm-dependencies group across 1 directory with 31 updates
Closed about 1 month ago
codev-workshops/keycloak #42
npm:react-router-dom npm:tar-fs +29 more
codev-workshops
chore(deps): bump the npm_and_yarn group across 1 directory with 2 updates
Open about 1 month ago
Sundsvallskommun/web-app-business-center #266
npm:lodash npm:qs
Sundsvallskommun
(chore): Bump the minor-and-patch group across 1 directory with 30 updates
Open about 1 month ago
openmrs/openmrs-esm-core #1896
npm:zustand npm:dayjs +28 more
openmrs
Bump lodash from 4.17.20 to 4.18.1 in /javascript
Open about 1 month ago
tgonul/demo #5
npm:lodash
tgonul
chore(deps): bump the npm_and_yarn group across 1 directory with 14 updates
Open about 1 month ago
readytotest/readytotest.github.io #424
npm:serialize-javascript npm:nanoid +12 more
readytotest
build(deps): bump the npm_and_yarn group across 1 directory with 19 updates
Closed about 1 month ago
MagicSuperApp/SuperApp #387
npm:axios npm:ws +17 more
MagicSuperApp
Bump lodash from 4.17.21 to 4.18.1
Open about 1 month ago
champierre/ml2scratch #76
npm:lodash
champierre
Advisory Details
Published: April 01, 2026 7 months ago
Updated: October 29, 2026 3 days ago
CVSS Score: 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS: 2.81% 86th percentile
Source: Github
Classification: GENERAL
UUID: GSA_kwCzR0hTQS1yNWZyLXJqeHItNjZqY84ABUmW
PR Statistics
PR Status
Open 2326 (51.4%)
Merged 0 (0.0%)
Closed 2201 (48.6%)
Update Types
Major 1741 (8.1%)
Minor 11691 (54.7%)
Patch 7669 (35.9%)