CVE-2026-4800: Arbitrary Code Execution in Lodash Template Imports
- Vendor
- Lodash
CVE-2026-4800 is a code injection vulnerability in Lodash's _.template function. Validation introduced for CVE-2021-23337 protects the variable option but does not validate options.imports key names, although both reach the Function() constructor. Attacker-controlled import names can inject default-parameter expressions that execute arbitrary JavaScript during template compilation. Additionally, imports are merged using assignInWith, which enumerates inherited properties through for..in. Consequently, malicious keys introduced into Object.prototype through a separate prototype-pollution vulnerability can also reach the code-generation sink. The issue affects lodash, lodash-es, lodash-amd, and lodash.template and is fixed in version 4.18.1.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation executes arbitrary JavaScript with the privileges and capabilities of the application runtime. In a server-side deployment, this can compromise application-accessible data, permit unauthorized modification, and disrupt service. Remote exploitation depends on whether the consuming application exposes a path from attacker-controlled input to template import names; the presence of Lodash alone does not establish an unauthenticated remote code execution path.
Mitigation
If you can’t patch tonight, do this now.
Do not pass untrusted input as options.imports key names; use only developer-controlled, static key names. Also prevent or remediate separate prototype-pollution vectors that could introduce malicious inherited keys, because restricting directly supplied import names does not by itself address the inherited-property path.
Remediation
Patch, then assume compromise.
Upgrade lodash, lodash-es, lodash-amd, and lodash.template dependencies to version 4.18.1 or a later fixed release. For applications that bundle these dependencies, apply the corresponding vendor security update and verify that vulnerable bundled copies are replaced. Splunk Enterprise Security 8.7.0 includes the lodash-es update for its UEBA App. Apply applicable distribution security updates for affected Cockpit packages.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-4800 exploited in the wild?
- As of Nov 23, 2026, Mallory has no reports of CVE-2026-4800 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-4800?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-4800, the earliest disclosed Apr 1, 2026.
- Is there a patch for CVE-2026-4800?
- Upgrade lodash, lodash-es, lodash-amd, and lodash.template dependencies to version 4.18.1 or a later fixed release. For applications that bundle these dependencies, apply the corresponding vendor security update and verify that vulnerable bundled copies are replaced.
- What products are affected by CVE-2026-4800?
- Lodash, Lodash-Amd, Lodash-Es, Lodash.Template, and Lodash-Rails.
- How severe is CVE-2026-4800?
- CVE-2026-4800 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 2.9% (87th percentile) as of Nov 23, 2026.
Recent activity
86 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.