VDB

CVE-2026-4800

CVE-2026-4800 PUBLISHED CVSS 8.1 HIGH

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

Reported by openjs · Published March 31, 2026

lodash-es is fixed in 4.18.0 (npm)

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, and 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, so if Object.prototype has been polluted by another vector the polluted keys are copied into the imports object and passed to Function(). The issue is fixed in 4.18.1 for lodash, lodash-es, lodash-amd, and lodash.template. As a workaround, do not pass untrusted input as key names in options.imports; use only developer-controlled, static key names.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
lodash-esnpm4.18.0
lodash-amdnpm4.18.0
langfuse-2Chainguard2.95.12-r17
kubeflow-pipelinesWolfi2.16.0-r11
py3-jupyterlabWolfi4.6.1-r1
py3-jupyterlabChainguard4.6.1-r1
gitlab-rails-ce-19.1Chainguard19.1.7-r6
kubeflow-centraldashboardChainguard1.10.0-r18
json-serverChainguard0.17.4-r6
prismChainguard5.15.6-r2
pcserrata.rockylinux.org0.11.11-2.el9, 0.11.10-1.el9, 0:0.11.10-1.el9_7.3.src, 0:0.11.10-1.el9_7.3.s390x
sqlpadChainguard7.5.7-r17

22 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
lodashlodash4.0.0, 4.18.1
lodashlodash-es4.0.0, 4.18.1
lodashlodash-amd4.0.0, 4.18.1
lodashlodash.template4.0.0, 4.18.1
Red HatRed Hat Satellite 6.181777911535
Red HatRed Hat Openshift Data Foundation 4.191776707724, 1784056134
Red HatRed Hat Connectivity Link 1
chainguardlangfuse-20
Red HatRed Hat Enterprise Linux 9.6 Extended Update Support0:0.11.9-2.el9_6.4
Red HatRed Hat Enterprise Linux 9.4 Extended Update Support0:0.11.7-2.el9_4.7
wolfikubeflow-pipelines0
Red HatRed Hat OpenShift AI 2.25
Red HatCluster Observability Operator 1.5.01782839279
Red HatLogging Subsystem for Red Hat OpenShift
Red HatRed Hat Enterprise Linux 10.0 Extended Update Support0:0.12.0-3.el10_0.5
Red HatRed Hat Enterprise Linux 10
wolfipy3-jupyterlab0
Red HatLogging Subsystem for Red Hat OpenShift
chainguardpy3-jupyterlab0
Red HatRed Hat build of Apache Camel - HawtIO 4

…and 579 more

Timeline

  • Mar 31, 2026 CVE Published
  • Mar 31, 2026 PoC Published (4 in total, the first dated here)
  • Apr 1, 2026 EPSS Score (30 in total, the first dated here)
  • Apr 27, 2026 Security Advisory (98 in total, the first dated here)
  • Apr 27, 2026 Distribution Patch (99 in total, the first dated here)
  • Jun 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-4800
vulnetix vdb fixes CVE-2026-4800

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-4800/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›