Back to CVE records
High 8.1Published Mar 31, 2026

CVE-2026-4800lodash vulnerable to Code Injection via `_.template` imports key names

Updated under an hour ago ()

Does this affect you?

It affects lodash and 58 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
8.1 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-94
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
openjs
NVD analysis
Modified
Record last updated
Oct 15, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
lodash lodash
lodash:lodash (from the name)
from 4.0.0 before 4.18.1; 4.18.1 not affected
CNA record
lodash lodash-es
lodash:es (from the name)
from 4.0.0 before 4.18.1; 4.18.1 not affected
CNA record
lodash lodash-amd
lodash:amd (from the name)
from 4.0.0 before 4.18.1; 4.18.1 not affected
CNA record
lodash lodash.template
lodash:lodash.template (from the name)
from 4.0.0 before 4.18.1; 4.18.1 not affected
CNA record
from 4.2.0-9 not affected
CISA ADP
from 0:2.5.20260715-1.el8ap not affected
CISA ADP
Red Hat Red Hat Data Grid 8.6.1
redhat:jboss_data_grid
8
CISA ADP
from 0:0.12.1-1.el10_1.3 not affected; from 0:0.12.2-3.el10_2.1 not affected
CISA ADP
from 0:0.12.0-3.el10_0.5 not affected
CISA ADP
from 0:0.10.8-1.el8_4.11 not affected
CISA ADP
from 0:0.10.8-1.el8_4.11 not affected
CISA ADP
from 0:0.10.12-6.el8_6.13 not affected
CISA ADP
from 0:0.10.12-6.el8_6.13 not affected
CISA ADP
from 0:0.11.7-2.el9_4.7 not affected
CISA ADP
2.9
CISA ADP
Red Hat Cluster Observability Operator 1.5.0
redhat:cluster_observability_operator
from 1782839279 not affected
CISA ADP
Red Hat Migration Toolkit for Virtualization 2.1
redhat:migration_toolkit_virtualization
from 1779139872 not affected
CISA ADP
from 1778508956 not affected
CISA ADP
from 1776784286 not affected
CISA ADP
from 1783502765 not affected
CISA ADP
from 1783690532 not affected
CISA ADP
from 1780467029 not affected
CISA ADP
from 1786753387 not affected
CISA ADP
Red Hat Red Hat Openshift Data Foundation 4.16
redhat:openshift_data_foundation
from 1778076673 not affected
CISA ADP
from 1776744110 not affected
CISA ADP
Red Hat Red Hat OpenShift distributed tracing 3.9.3
redhat:openshift_distributed_tracing
from 1776435608 not affected
CISA ADP
from 1779115545 not affected
CISA ADP
from 1776202125 not affected
CISA ADP
from 1777911535 not affected
CISA ADP
Red Hat Red Hat Trusted Artifact Signer 1.3
redhat:trusted_artifact_signer
from 1776330093 not affected
CISA ADP
Red Hat Confidential Compute Attestation
redhat:confidential_compute_attestation
1
CISA ADP
Red Hat Gatekeeper 3
redhat:gatekeeper
3
CISA ADP
5
CISA ADP
Red Hat Migration Toolkit for Applications 8
redhat:migration_toolkit_applications
8
CISA ADP
Versions not stated
CISA ADP
Red Hat Node HealthCheck Operator
redhat:workload_availability_nhc
0
CISA ADP
Red Hat OpenShift Lightspeed
redhat:openshift_lightspeed
All versions
CISA ADP
Red Hat OpenShift Pipelines
redhat:openshift_pipelines
1
CISA ADP
2
CISA ADP
2
CISA ADP
Red Hat Red Hat Advanced Cluster Security 4
redhat:advanced_cluster_security
4
CISA ADP
4
CISA ADP
2
CISA ADP
3
CISA ADP
All versions
CISA ADP
1
CISA ADP
Red Hat Red Hat Connectivity Link 1
redhat:connectivity_link
1
CISA ADP
11
CISA ADP
2
CISA ADP
3
CISA ADP
Red Hat Red Hat Fuse 7
redhat:jboss_fuse
7
CISA ADP
Red Hat Red Hat JBoss Enterprise Application Platform 7
redhat:jboss_enterprise_application_platform
all versions status unknown
CISA ADP
all versions status unknown
CISA ADP
Red Hat Red Hat OpenShift Virtualization 4
redhat:container_native_virtualization
all versions status unknown
CISA ADP
Red Hat Red Hat Process Automation 7
redhat:jboss_enterprise_bpms_platform
all versions status unknown
CISA ADP
all versions status unknown
CISA ADP
Red Hat Red Hat Single Sign-On 7
redhat:red_hat_single_sign_on
all versions status unknown
CISA ADP
Red Hat Red Hat Trusted Profile Analyzer
redhat:trusted_profile_analyzer
all versions status unknown
CISA ADP
all versions status unknown
CISA ADP
lodash lodash
lodash:lodash
from 4.0.0 before 4.18.0
NVD

References

  • third-party-advisory

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.