Skip to content
Fencer Vulns
high 8.1

CVE-2026-4800 json

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

published 2026-03-31 7 mo ago modified 2026-10-17 23 d ago also GHSA-r5fr-rjxr-66jc , EUVD-2026-17610

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.8%
EPSS 2.8% chance of exploitation in 30 days, percentile 86%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm lodash 4.18.0
  • npm lodash-es 4.18.0
  • npm lodash-amd 4.18.0
  • npm lodash.template 4.18.0
  • lodash lodash 4.18.1
  • lodash lodash-es 4.18.1
  • lodash lodash-amd 4.18.1
  • lodash lodash.template 4.18.1
  • Red Hat Cryostat 4 on RHEL 9 4.2.0-9
  • Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8 0:2.5.20260715-1.el8ap
  • Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9 0:2.5.20260715-1.el9ap
  • Red Hat Red Hat Ansible Automation Platform 2.6 for RHEL 9 0:2.6.9-1.el9ap
  • Red Hat Red Hat Enterprise Linux 10 0:0.12.1-1.el10_1.3, 0:0.12.2-3.el10_2.1, 0:94.3-1.el10_2
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support 0:0.12.0-3.el10_0.5
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support 0:0.10.8-1.el8_4.11
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On 0:0.10.8-1.el8_4.11
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service 0:0.10.12-6.el8_6.13
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions 0:0.10.12-6.el8_6.13
  • Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service 0:0.10.15-4.el8_8.11
  • Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions 0:0.10.15-4.el8_8.11
  • Red Hat Red Hat Enterprise Linux 9 0:0.11.10-1.el9_7.3, 0:0.11.11-2.el9_8.1, 0:356.1-1.el9_8
  • Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions 0:0.11.1-10.el9_0.11
  • Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions 0:0.11.4-7.el9_2.8
  • Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support 0:0.11.7-2.el9_4.7
  • Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support 0:0.11.9-2.el9_6.4
  • Red Hat Cluster Observability Operator 1.5.0 1782839279, 1782839996, 1782840539
  • Red Hat Migration Toolkit for Virtualization 2.1 1779139872
  • Red Hat Migration Toolkit for Virtualization 2.9 1778927462
  • Red Hat Network Observability (NETOBSERV) 1.11.0 1778508956, 1778510461
  • Red Hat Red Hat Ansible Automation Platform 2.5 1777403872
  • node-lodash Debian 12 4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1
  • node-lodash Debian 13 4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1
  • node-lodash Debian 14 4.18.1+dfsg-1

debian advisories DEBIAN-CVE-2026-4800

  • node-lodash Ubuntu 25.10 4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1
  • node-lodash Ubuntu Pro 16.04 LTS 2.4.1+dfsg-3ubuntu0.1~esm1
  • node-lodash Ubuntu Pro 18.04 LTS 4.17.4+dfsg-1ubuntu0.1~esm1
  • node-lodash Ubuntu Pro 20.04 LTS 4.17.15+dfsg-2ubuntu0.1~esm1
  • node-lodash Ubuntu Pro 22.04 LTS 4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1
  • node-lodash Ubuntu Pro 24.04 LTS 4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1
  • node-lodash Ubuntu Pro 26.04 LTS 4.17.23+dfsg-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2026-4800

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • cockpit RHEL 10.2 356.1-1.el10_2
  • cockpit-ws RHEL 10.2 356.1-1.el10_2
  • cockpit-bridge RHEL 10.2 356.1-1.el10_2
  • cockpit-system RHEL 10.2 356.1-1.el10_2
  • cockpit-storaged RHEL 10.2 356.1-1.el10_2
  • cockpit-packagekit RHEL 10.2 356.1-1.el10_2
  • cockpit-ws-selinux RHEL 10.2 356.1-1.el10_2
  • cockpit RHEL 9 356.1-1.el9_8

red hat advisories RHBA-2026:21388RHBA-2026:21387RHSA-2026:42078RHSA-2026:24762RHSA-2026:24331RHSA-2026:19167

  • pcs AlmaLinux 9 0.11.11-2.el9_8.1
  • pcs-snmp AlmaLinux 9 0.11.11-2.el9_8.1
  • pcs AlmaLinux 9 0.11.10-1.el9_7.3
  • pcs-snmp AlmaLinux 9 0.11.10-1.el9_7.3
  • cockpit-ha-cluster AlmaLinux 10 0.12.1-1.el10_1.3

almalinux advisories ALSA-2026:19167ALSA-2026:10710ALSA-2026:10713

  • cockpit-image-builder Rocky Linux 10 94.3-1.el10_2
  • pcs Rocky Linux 9 0.11.11-2.el9_8.1
  • pcs Rocky Linux 9 0.11.10-1.el9_7.3

rocky linux advisories RLSA-2026:24331RLSA-2026:19167RLSA-2026:10710

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-4800 updated cvss 8.1

lodash: lodash: Arbitrary code execution via untrusted input in template imports

  • Red Hat Confidential Compute Attestation openshift-sandboxed-containers/osc-pccs
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Cryostat 4 lodash Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/vector-rhel9, openshift-logging/fluentd-rhel9, openshift-logging/kibana6-rhel8, openshift-logging/eventrouter-rhel9, openshift-logging/elasticsearch6-rhel9, openshift-logging/logging-curator5-rhel9, +7 more Red Hat Migration Toolkit for Applications 8 mta/mta-ui-rhel9
    affected: workaround, no fix available
  • Red Hat Migration Toolkit for Virtualization mtv-candidate/mtv-console-plugin-rhel9
    affected: workaround, no fix planned “Will not fix”
  • Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-console-plugin-rhel9, openshift-lightspeed/lightspeed-console-plugin-pf5-rhel9 Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel9, openshift-pipelines/pipelines-console-plugin-rhel9, openshift-pipelines/pipelines-console-plugin-pf5-rhel9
    affected: workaround, no fix available
  • Red Hat 3scale API Management Platform 2 3scale-amp20/system, 3scale-amp21/system, 3scale-amp22/system, 3scale-amp24/system, 3scale-amp25/system, 3scale-amp26/system, +3 more
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat Advanced Cluster Security 4 advanced-cluster-security/rhacs-main-rhel8
    affected: workaround, no fix available
  • Red Hat Ansible Automation Platform 2 automation-hub, automation-controller, ansible-automation-platform-24/lightspeed-rhel8, ansible-on-clouds/aoc-azure-aap-installer-rhel9, ansible-automation-platform/automation-dashboard-rhel9, ansible-automation-platform-tech-preview/automation-dashboard-rhel9
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat build of Apache Camel - HawtIO 4 lodash
    affected: workaround, no fix available
show 20 more
  • Red Hat build of Apicurio Registry 2 lodash
    affected: workaround, no fix planned “Will not fix”
  • Red Hat build of Apicurio Registry 3 apicurio/apicurio-studio-ui-rhel8, apicurio/apicurio-registry-ui-rhel8, apicurio/apicurio-registry-ui-rhel9
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat Build of Keycloak lodash
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Build of Podman Desktop podman-desktop-macos-1-0, podman-desktop-windows-1-0 Red Hat Connectivity Link 1 rhcl-1/rhcl-console-plugin-rhel9
    affected: workaround, no fix available
  • Red Hat Developer Hub 1 rhdh/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processor
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Discovery 2 discovery/discovery-ui-rhel9
    affected: workaround, no fix available
  • Red Hat Enterprise Linux 8 pcs, cockpit, pcs-snmp, cockpit-ws, cockpit-pcp, cockpit-bridge, +6 more
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat Enterprise Linux 9 librbd1, librados2, rhsm-icons, cockpit-files, cockpit-podman, cockpit-machines, +1 more Red Hat Enterprise Linux 10 ceph, cockpit-files, cockpit-podman, cockpit-machines, subscription-manager-cockpit Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/disk-image-cuda-rhel9
    affected: workaround, no fix available
  • Red Hat Fuse 7 lodash Red Hat JBoss Enterprise Application Platform 7 lodash
    affected: workaround, no fix planned “Will not fix”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-mod-arch-maas-rhel9 Red Hat OpenShift Container Platform 4 openshift4/ose-agent-installer-ui-rhel9 Red Hat OpenShift Container Platform 5 openshift5/ose-console-rhel9 Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8, openshift-gitops-1/argocd-rhel9 Red Hat OpenShift Virtualization 4 container-native-virtualization/kubevirt-console-plugin
    affected: workaround, no fix available
  • Red Hat Process Automation 7 lodash
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Satellite 6 satellite/iop-vulnerability-frontend-rhel9
    affected: workaround, no fix available
  • Red Hat Single Sign-On 7 lodash
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Trusted Profile Analyzer rhtpa/rhtpa-trustification-service-rhel9 Red Hat Self-service automation portal 2 ansible-automation-platform/automation-portal
    affected: workaround, no fix available
  • Red Hat Cluster Observability Operator 1.5 cluster-observability-operator/logging-console-plugin-pf4-rhel9 1782839279, cluster-observability-operator/logging-console-plugin-pf5-rhel9 1782840539, cluster-observability-operator/troubleshooting-panel-console-plugin-pf6-rhel9 1782839996
    fixed: vendor fix RHSA-2026:34342
  • Red Hat Cryostat 4 on RHEL 9 cryostat/cryostat-rhel9 4.2.0-9, cryostat/cryostat-openshift-console-plugin-rhel9 4.2.0-9
    fixed: vendor fix RHSA-2026:17789
  • Red Hat Migration Toolkit for Virtualization 2.9 migration-toolkit-virtualization 1778927462
    fixed: vendor fix RHSA-2026:19410
  • Red Hat Migration Toolkit for Virtualization 2.10 migration-toolkit-virtualization 1779139872
    fixed: vendor fix RHSA-2026:19409
  • Red Hat Network Observability (NETOBSERV) 1.11.0 network-observability 1778508956, network-observability 1778510461
    fixed: vendor fix RHSA-2026:16874
  • Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25 1777403872
    fixed: vendor fix RHSA-2026:13553

65 more fixed, 65 more not affected in the full advisory

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
7 mo ago

Exploit prediction

2.81% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA ADP 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
npm lodash
>=4.0.0, <4.18.0
4.18.0
npm lodash-es
>=4.0.0, <4.18.0
4.18.0
npm lodash-amd
>=4.0.0, <4.18.0
4.18.0
npm lodash.template
>=4.0.0, <4.18.0
4.18.0

Affected products

  • lodash lodash
  • lodash lodash-es
  • lodash lodash-amd
  • lodash lodash.template
  • Red Hat Cryostat 4 on RHEL 9
  • Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 8
  • Red Hat Red Hat Ansible Automation Platform 2.5 for RHEL 9
  • Red Hat Red Hat Ansible Automation Platform 2.6 for RHEL 9
  • Red Hat Red Hat Data Grid 8.6.1
  • Red Hat Red Hat Enterprise Linux 10
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  • Red Hat Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
  • Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service
  • Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service
  • Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9
  • Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
  • Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support
  • Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support
  • Red Hat Streams for Apache Kafka 2.9.4
  • Red Hat Streams for Apache Kafka 3.2.0
  • Red Hat Cluster Observability Operator 1.5.0
  • Red Hat Migration Toolkit for Virtualization 2.1
  • Red Hat Migration Toolkit for Virtualization 2.9
  • Red Hat Network Observability (NETOBSERV) 1.11.0
  • Red Hat Red Hat Ansible Automation Platform 2.5
  • Red Hat Red Hat Ansible Automation Platform 2.6
  • Red Hat Red Hat Developer Hub 1.8
  • Red Hat Red Hat Developer Hub 1.9
  • Red Hat Red Hat Edge Manager 1.0
  • Red Hat Red Hat Edge Manager 1.1
  • Red Hat Red Hat Migration Toolkit 1.8
  • Red Hat Red Hat OpenShift AI 2.25
  • Red Hat Red Hat OpenShift AI 3.3
  • Red Hat Red Hat OpenShift Container Platform 4.12
  • Red Hat Red Hat OpenShift Container Platform 4.13
  • Red Hat Red Hat OpenShift Container Platform 4.14
  • Red Hat Red Hat OpenShift Container Platform 4.15
  • Red Hat Red Hat OpenShift Container Platform 4.16
  • Red Hat Red Hat OpenShift Container Platform 4.17
  • Red Hat Red Hat OpenShift Container Platform 4.18
  • Red Hat Red Hat OpenShift Container Platform 4.19
  • Red Hat Red Hat OpenShift Container Platform 4.20
  • Red Hat Red Hat OpenShift Container Platform 4.21
  • Red Hat Red Hat OpenShift Container Platform 4.22
  • Red Hat Red Hat Openshift Data Foundation 4.16
  • Red Hat Red Hat Openshift Data Foundation 4.17

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.