CVE-2026-4800lodash vulnerable to Code Injection via `_.template` imports key names
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 3.1% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 3.1%
- percentile 88%
- Fix
- Named by a source
- CVE published 31 Mar 2026
Reference
None of the "Needs attention" rules apply right now.
EPSS 3.1% (+3) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- lodash (npm): upgrade to 4.18.0 or later on your release line.
- lodash-amd (npm): upgrade to 4.18.0 or later on your release line.
- lodash-es (npm): upgrade to 4.18.0 or later on your release line.
- lodash.template (npm): upgrade to 4.18.0 or later on your release line.
- Commit / pull request: https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c
- Advisory: https://cna.openjsf.org/security-advisories.html
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-4800
- Advisory: https://github.com/advisories/GHSA-35jh-r3h4-6jhm
Who should check
lodash (npm) pkg:npm/lodash
- Affected>= 4.0.0, < 4.18.0Fixed in4.18.0OSV (GHSA-r5fr-rjxr-66jc)
lodash-amd (npm) pkg:npm/lodash-amd
- Affected>= 4.0.0, < 4.18.0Fixed in4.18.0OSV (GHSA-r5fr-rjxr-66jc)
lodash-es (npm) pkg:npm/lodash-es
- Affected>= 4.0.0, < 4.18.0Fixed in4.18.0OSV (GHSA-r5fr-rjxr-66jc)
lodash.template (npm) pkg:npm/lodash.template
- Affected>= 4.0.0, < 4.18.0Fixed in4.18.0OSV (GHSA-r5fr-rjxr-66jc)
lodash lodash product:lodash/lodash
- Affected>= 4.0.0, < 4.18.1Affected range ends before4.18.1as published by CNA (CVE List)
- Affected>= 4.0.0, < 4.18.0Affected range ends before4.18.0as published by CPE data (via the NVD API)
Lodash lodash-amd product:lodash/lodashamd
- Affected>= 4.0.0, < 4.18.1Affected range ends before4.18.1as published by CNA (CVE List)
- Affected>= 4.0.0, < 4.18.0Affected range ends before4.18.0as published by CPE data (via the NVD API)
Lodash lodash-es product:lodash/lodashes
- Affected>= 4.0.0, < 4.18.1Affected range ends before4.18.1as published by CNA (CVE List)
- Affected>= 4.0.0, < 4.18.0Affected range ends before4.18.0as published by CPE data (via the NVD API)
lodash lodash.template product:lodash/lodashtemplate
- Affected>= 4.0.0, < 4.18.1Affected range ends before4.18.1as published by CNA (CVE List)
- Affected>= 4.0.0, < 4.18.0Affected range ends before4.18.0as published by CPE data (via the NVD API)
Red Hat Cluster Observability Operator 1.5.0 product:redhat/clusterobservabilityoperator150
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Confidential Compute Attestation product:redhat/confidentialcomputeattestation
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Cryostat 4 product:redhat/cryostat4
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Cryostat 4 on RHEL 9 product:redhat/cryostat4onrhel9
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Logging Subsystem for Red Hat OpenShift product:redhat/loggingsubsystemforredhatopenshift
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Migration Toolkit for Applications 8 product:redhat/migrationtoolkitforapplications8
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Migration Toolkit for Virtualization 2.1 product:redhat/migrationtoolkitforvirtualization21
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Migration Toolkit for Virtualization 2.9 product:redhat/migrationtoolkitforvirtualization29
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Network Observability (NETOBSERV) 1.11.0 product:redhat/networkobservabilitynetobserv1110
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Node HealthCheck Operator product:redhat/nodehealthcheckoperator
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat OpenShift Lightspeed product:redhat/openshiftlightspeed
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat OpenShift Pipelines product:redhat/openshiftpipelines
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat 3scale API Management Platform 2 product:redhat/redhat3scaleapimanagementplatform2
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Advanced Cluster Security 4 product:redhat/redhatadvancedclustersecurity4
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2 product:redhat/redhatansibleautomationplatform2
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2.5 product:redhat/redhatansibleautomationplatform25
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8 product:redhat/redhatansibleautomationplatform25forrhel8
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9 product:redhat/redhatansibleautomationplatform25forrhel9
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2.6 product:redhat/redhatansibleautomationplatform26
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Ansible Automation Platform 2.6 for RHEL 9 product:redhat/redhatansibleautomationplatform26forrhel9
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat build of Apache Camel - HawtIO 4 product:redhat/redhatbuildofapachecamelhawtio4
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat build of Apicurio Registry 2 product:redhat/redhatbuildofapicurioregistry2
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat build of Apicurio Registry 3 product:redhat/redhatbuildofapicurioregistry3
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Build of Keycloak product:redhat/redhatbuildofkeycloak
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Build of Podman Desktop product:redhat/redhatbuildofpodmandesktop
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Connectivity Link 1 product:redhat/redhatconnectivitylink1
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Developer Hub product:redhat/redhatdeveloperhub
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Developer Hub 1.8 product:redhat/redhatdeveloperhub18
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Developer Hub 1.9 product:redhat/redhatdeveloperhub19
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Discovery 2 product:redhat/redhatdiscovery2
- Affectedall versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Edge Manager 1.0 product:redhat/redhatedgemanager10
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Red Hat Red Hat Edge Manager 1.1 product:redhat/redhatedgemanager11
- Affectednot stated: all versionsFixed innot namedas published by CNA (CVE List)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 9.8 CRITICAL (version 3.1)
- Score from
- NVD
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-94
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- ce714d77-add3-4f53-aff5-83d477b104bb
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 31 Mar 2026Published
References
- advisoryhttps://cna.openjsf.org/security-advisories.html
- otherhttps://github.com/lodash/lodash/security/advisories/GHSA-r5fr-rjxr-66jc
- otherhttps://access.redhat.com/errata/RHBA-2026:21387
- otherhttps://access.redhat.com/errata/RHSA-2026:10131
- otherhttps://access.redhat.com/errata/RHSA-2026:10175
- otherhttps://access.redhat.com/errata/RHSA-2026:10710
- otherhttps://access.redhat.com/errata/RHSA-2026:10713
- otherhttps://access.redhat.com/errata/RHSA-2026:11454
- otherhttps://access.redhat.com/errata/RHSA-2026:11469
- otherhttps://access.redhat.com/errata/RHSA-2026:11470
- otherhttps://access.redhat.com/errata/RHSA-2026:11471
- otherhttps://access.redhat.com/errata/RHSA-2026:11493
- otherhttps://access.redhat.com/errata/RHSA-2026:11494
- otherhttps://access.redhat.com/errata/RHSA-2026:11495
- otherhttps://access.redhat.com/errata/RHSA-2026:11516
- otherhttps://access.redhat.com/errata/RHSA-2026:12277
- otherhttps://access.redhat.com/errata/RHSA-2026:12279
- otherhttps://access.redhat.com/errata/RHSA-2026:13545
- otherhttps://access.redhat.com/errata/RHSA-2026:13553
- otherhttps://access.redhat.com/errata/RHSA-2026:13571
- otherhttps://access.redhat.com/errata/RHSA-2026:13826
- otherhttps://access.redhat.com/errata/RHSA-2026:14870
- otherhttps://access.redhat.com/errata/RHSA-2026:14871
- otherhttps://access.redhat.com/errata/RHSA-2026:16874
- otherhttps://access.redhat.com/errata/RHSA-2026:17448
- otherhttps://access.redhat.com/errata/RHSA-2026:17468
- otherhttps://access.redhat.com/errata/RHSA-2026:17469
- otherhttps://access.redhat.com/errata/RHSA-2026:17547
- otherhttps://access.redhat.com/errata/RHSA-2026:17549
- otherhttps://access.redhat.com/errata/RHSA-2026:17550
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-4800 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-r5fr-rjxr-66jc (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 39 min ago · osv 39 min ago · nvd 39 min ago · epss 39 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-r5fr-rjxr-66jc