cve.bz

CVE-2026-4800 lodash: Code Injection

9.8 criticalEPSS 2.9%Fix available

Critical (9.8) in lodash. EPSS 2.9% estimated probability of exploitation activity in the next 30 days. Fixed in lodash 4.18.0.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.9% (unchanged from 2.8% a week ago; 2.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-03-31. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • lodash (npm): fixed in 4.18.0
  • lodash-es (npm): fixed in 4.18.0
  • lodash-amd (npm): fixed in 4.18.0
  • lodash.template (npm): fixed in 4.18.0
  • Debian, Ubuntu, Red Hat, AlmaLinux, Rocky Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-4800 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-4800?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-4800?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-4800 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
lodashfrom 4.0.0 before 4.18.1
lodash-esfrom 4.0.0 before 4.18.1
lodash-amdfrom 4.0.0 before 4.18.1
lodash.templatefrom 4.0.0 before 4.18.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r5fr-rjxr-66jcnpmlodash>=4.0.0 <4.18.04.18.0
GHSA-r5fr-rjxr-66jcnpmlodash-es>=4.0.0 <4.18.04.18.0
GHSA-r5fr-rjxr-66jcnpmlodash-amd>=4.0.0 <4.18.04.18.0
GHSA-r5fr-rjxr-66jcnpmlodash.template>=4.0.0 <4.18.04.18.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12node-lodash4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1DEBIAN-CVE-2026-4800
Debian13node-lodash4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1DEBIAN-CVE-2026-4800
Debian14node-lodash4.18.1+dfsg-1DEBIAN-CVE-2026-4800
Ubuntu25.10node-lodash4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1UBUNTU-CVE-2026-4800 USN-8411-1
Ubuntu26.10node-lodashno fix listedUBUNTU-CVE-2026-4800
UbuntuPro:16.04:LTSnode-lodash2.4.1+dfsg-3ubuntu0.1~esm1UBUNTU-CVE-2026-4800 USN-8411-1
UbuntuPro:18.04:LTSnode-lodash4.17.4+dfsg-1ubuntu0.1~esm1UBUNTU-CVE-2026-4800 USN-8411-1
UbuntuPro:20.04:LTSnode-lodash4.17.15+dfsg-2ubuntu0.1~esm1UBUNTU-CVE-2026-4800 USN-8411-1
UbuntuPro:22.04:LTSnode-lodash4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1UBUNTU-CVE-2026-4800 USN-8411-1
UbuntuPro:24.04:LTSnode-lodash4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1UBUNTU-CVE-2026-4800 USN-8411-1
UbuntuPro:26.04:LTSnode-lodash4.17.23+dfsg-1ubuntu0.1~esm1UBUNTU-CVE-2026-4800 USN-8411-1
Red Hatansible_automation_platform:2.6::el9automation-controller, automation-controller-ui, automation-controller-cli and 2 more0:4.7.12-1.el9apRHSA-2026:24762
Red Hatansible_automation_platform:2.6::el9automation-gateway-proxy, automation-gateway-proxy-server, automation-gateway-proxy-debugsource and 1 more0:2.6.14-3.el9apRHSA-2026:24762
Red Hatansible_automation_platform:2.6::el9automation-platform-ui0:2.6.9-1.el9apRHSA-2026:24762
Red Hatansible_automation_platform:2.6::el9python3.12-pillow, python3.12-pillow-debuginfo, python3.12-pillow-debugsource0:12.2.0-1.el9apRHSA-2026:24762
Red Hatansible_automation_platform:2.6::el9receptor, receptorctl, receptor-debuginfo and 1 more0:1.6.5-1.el9apRHSA-2026:24762
Red Hatansible_automation_platform:2.6::el9, ansible_automation_platform_developer:2.6::el9, ansible_automation_platform_inside:2.6::el9python3.12-click0:8.3.3-1.el9apRHSA-2026:24762
Red Hatansible_automation_platform:2.6::el9, ansible_automation_platform_developer:2.6::el9, ansible_automation_platform_inside:2.6::el9python3.12-cryptography, python3.12-cryptography-debuginfo, python3.12-cryptography-debugsource0:46.0.7-1.el9apRHSA-2026:24762
Red Hatansible_automation_platform:2.6::el10receptor, receptorctl, receptor-debuginfo and 1 more0:1.6.5-1.el10apRHSA-2026:24762
Red Hatansible_automation_platform:2.6::el10, ansible_automation_platform_developer:2.6::el10python3-click0:8.3.3-1.el10apRHSA-2026:24762
Red Hatansible_automation_platform_developer:2.6::el9automation-controller, automation-controller-cli0:4.7.12-1.el9apRHSA-2026:24762
Red Hatansible_automation_platform_developer:2.6::el9, ansible_automation_platform_inside:2.6::el9receptor, receptorctl0:1.6.5-1.el9apRHSA-2026:24762
Red Hatenterprise_linux:9::appstreamcockpit-files0:43-1.el9RHSA-2026:97538
23 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux9cockpit-files43-1.el9ALSA-2026:97538
AlmaLinux9cockpit-machines355-1.el9ALSA-2026:97539
AlmaLinux9cockpit-podman129-1.el9ALSA-2026:97537
AlmaLinux9pcs, pcs-snmp0.11.10-1.el9_7.3ALSA-2026:10710
AlmaLinux9pcs, pcs-snmp0.11.11-2.el9_8.1ALSA-2026:19167
AlmaLinux10cockpit-files43-1.el10ALSA-2026:97194
AlmaLinux10cockpit-ha-cluster0.12.1-1.el10_1.3ALSA-2026:10713
AlmaLinux10cockpit-machines355-1.el10ALSA-2026:97238
AlmaLinux10cockpit-podman129-1.el10ALSA-2026:97193
Rocky Linux9cockpit-files0:43-1.el9RLSA-2026:97538
Rocky Linux9cockpit-machines0:355-1.el9RLSA-2026:97539
Rocky Linux9cockpit-podman0:129-1.el9RLSA-2026:97537
Rocky Linux9pcs0:0.11.10-1.el9_7.3RLSA-2026:10710
Rocky Linux9pcs0:0.11.11-2.el9_8.1RLSA-2026:19167
Rocky Linux9rhsm-icons, subscription-manager-cockpit0:17-1.el9.rocky.0.1RLSA-2026:97514
Rocky Linux10cockpit-files0:43-1.el10RLSA-2026:97194
Rocky Linux10cockpit-image-builder0:94.3-1.el10_2RLSA-2026:24331
Rocky Linux10cockpit-machines0:355-1.el10RLSA-2026:97238
Rocky Linux10cockpit-podman0:129-1.el10RLSA-2026:97193
Rocky Linux10rhsm-icons, subscription-manager-cockpit0:17-1.el10.rocky.0.1RLSA-2026:97090

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

In the context of Red Hat Enterprise Linux, the grafana and grafana-pcp packages execute the affected JavaScript entirely client-side within the user's browser. Consequently, the attack surface is strictly restricted to the local browser environment.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Cryostat 4 on RHEL 9cryostat/cryostat-openshift-console-plugin-rhel9:4.2.0-9Fixed 2026-05-26RHSA-2026:17789
Cryostat 4 on RHEL 9cryostat/cryostat-rhel9:4.2.0-9Fixed 2026-05-26RHSA-2026:17789
Red Hat Ansible Automation Platform 2.5 for RHEL 8automation-gateway-0:2.5.20260715-1.el8apFixed 2026-07-20RHSA-2026:42078
Red Hat Ansible Automation Platform 2.5 for RHEL 9automation-gateway-0:2.5.20260715-1.el9apFixed 2026-07-20RHSA-2026:42078
Red Hat Ansible Automation Platform 2.6 for RHEL 9automation-platform-ui-0:2.6.9-1.el9apFixed 2026-06-09RHSA-2026:24762
Red Hat Data Grid 8.6.1lodashFixed 2026-06-02RHSA-2026:22619
Red Hat Enterprise Linux 10pcs-0:0.12.1-1.el10_1.3Fixed 2026-04-27RHSA-2026:10713
Red Hat Enterprise Linux 10cockpit-0:356.1-1.el10_2Fixed 2026-05-27RHBA-2026:21388
Red Hat Enterprise Linux 10pcs-0:0.12.2-3.el10_2.1Fixed 2026-05-19RHSA-2026:19008
Red Hat Enterprise Linux 10cockpit-image-builder-0:94.3-1.el10_2Fixed 2026-06-08RHSA-2026:24331
Confidential Compute Attestationopenshift-sandboxed-containers/osc-pccsWill not fix
Cryostat 4lodashAffected
Gatekeeper 3gatekeeper/gatekeeper-rhel9Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-operator-bundleAffected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/cluster-logging-rhel9-operatorAffected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel9Affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-operator-bundleAffected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-proxy-rhel9Affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-rhel9-operatorAffected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/eventrouter-rhel9Affected
440 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-4800.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON