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.
Do this next
Free account, 1 product
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
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 |
Red Hat Cryostat 4 on RHEL 9 redhat:cryostat | from 4.2.0-9 not affected | CISA ADP |
Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8 redhat:ansible_automation_platform | 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 |
Red Hat Red Hat Enterprise Linux 10 redhat:enterprise_linux | from 0:0.12.1-1.el10_1.3 not affected; from 0:0.12.2-3.el10_2.1 not affected | CISA ADP |
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support redhat:enterprise_linux_eus | 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 | |
Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On redhat:rhel_eus_long_life | 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 | |
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support redhat:rhel_eus | from 0:0.11.7-2.el9_4.7 not affected | CISA ADP |
Red Hat Streams for Apache Kafka 2.9.4 redhat:amq_streams | 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 |
Red Hat Network Observability (NETOBSERV) 1.11.0 redhat:network_observ_optr | from 1778508956 not affected | CISA ADP |
Red Hat Red Hat Developer Hub 1.8 redhat:rhdh | from 1776784286 not affected | CISA ADP |
Red Hat Red Hat Edge Manager 1.0 redhat:edge_manager | from 1783502765 not affected | CISA ADP |
Red Hat Red Hat Migration Toolkit 1.8 redhat:rhmt | from 1783690532 not affected | CISA ADP |
Red Hat Red Hat OpenShift AI 2.25 redhat:openshift_ai | from 1780467029 not affected | CISA ADP |
Red Hat Red Hat OpenShift Container Platform 4.12 redhat:openshift | 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 |
Red Hat Red Hat OpenShift Dev Spaces 3.27 redhat:openshift_devspaces | 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 |
Red Hat Red Hat OpenShift GitOps 1.18 redhat:openshift_gitops | from 1779115545 not affected | CISA ADP |
Red Hat Red Hat OpenShift Service Mesh 2.6 redhat:service_mesh | from 1776202125 not affected | CISA ADP |
Red Hat Red Hat Satellite 6.18 redhat:satellite | 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 |
Red Hat Logging Subsystem for Red Hat OpenShift redhat:logging | 5 | CISA ADP |
Red Hat Migration Toolkit for Applications 8 redhat:migration_toolkit_applications | 8 | CISA ADP |
Red Hat Multicluster Engine for Kubernetes redhat:multicluster_engine | 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 |
Red Hat Red Hat 3scale API Management Platform 2 redhat:red_hat_3scale_amp | 2 | CISA ADP |
2 | CISA ADP | |
Red Hat Red Hat Advanced Cluster Security 4 redhat:advanced_cluster_security | 4 | CISA ADP |
Red Hat Red Hat build of Apache Camel - HawtIO 4 redhat:apache_camel_hawtio | 4 | CISA ADP |
Red Hat Red Hat build of Apicurio Registry 2 redhat:service_registry | 2 | CISA ADP |
Red Hat Red Hat build of Apicurio Registry 3 redhat:apicurio_registry | 3 | CISA ADP |
Red Hat Red Hat Build of Keycloak redhat:build_keycloak | All versions | CISA ADP |
Red Hat Red Hat Build of Podman Desktop redhat:podman_desktop | 1 | CISA ADP |
Red Hat Red Hat Connectivity Link 1 redhat:connectivity_link | 1 | CISA ADP |
Red Hat Red Hat Directory Server 11 redhat:directory_server | 11 | CISA ADP |
Red Hat Red Hat Discovery 2 redhat:discovery | 2 | CISA ADP |
Red Hat Red Hat Enterprise Linux AI (RHEL AI) 3 redhat:enterprise_linux_ai | 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 |
Red Hat Red Hat JBoss Enterprise Application Platform Expansion Pack redhat:jbosseapxp | 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 |
Red Hat Red Hat Quay 3 redhat:quay | 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 |
Red Hat Self-service automation portal 2 redhat:ansible_portal | all versions status unknown | CISA ADP |
lodash lodash lodash:lodash | from 4.0.0 before 4.18.0 | NVD |
References
- https://github.com/lodash/lodash/security/advisories/GHSA-r5fr-rjxr-66jc
- https://cna.openjsf.org/security-advisories.htmlthird-party-advisory
- https://access.redhat.com/errata/RHBA-2026:21387
- https://access.redhat.com/errata/RHSA-2026:10131
- https://access.redhat.com/errata/RHSA-2026:10175
- https://access.redhat.com/errata/RHSA-2026:10710
- https://access.redhat.com/errata/RHSA-2026:10713
- https://access.redhat.com/errata/RHSA-2026:11454
- https://access.redhat.com/errata/RHSA-2026:11469
- https://access.redhat.com/errata/RHSA-2026:11470
- https://access.redhat.com/errata/RHSA-2026:11471
- https://access.redhat.com/errata/RHSA-2026:11493
- https://access.redhat.com/errata/RHSA-2026:11494
- https://access.redhat.com/errata/RHSA-2026:11495
- https://access.redhat.com/errata/RHSA-2026:11516
- https://access.redhat.com/errata/RHSA-2026:12277
- https://access.redhat.com/errata/RHSA-2026:12279
- https://access.redhat.com/errata/RHSA-2026:13545
- https://access.redhat.com/errata/RHSA-2026:13553
- https://access.redhat.com/errata/RHSA-2026:13571
- https://access.redhat.com/errata/RHSA-2026:13826
- https://access.redhat.com/errata/RHSA-2026:14870
- https://access.redhat.com/errata/RHSA-2026:14871
- https://access.redhat.com/errata/RHSA-2026:16874
- https://access.redhat.com/errata/RHSA-2026:17448
The CVE record on cve.org NVD's entry
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.