Feed
9.8CRITICAL

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%
Priority
28/100 medium
how it is computed
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

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

Sources

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