Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-4800: Arbitrary Code Execution in Lodash Template Imports

Published Mar 31, 2026 · Updated 1 day ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days41 mentions · peak 12 in a dayToday
CVSS9.8Critical · v3.1
EPSS2.9%87th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Lodash
IdentifiersCVE-2026-4800CWE-94 · Improper Control of Generation of…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2026-4800-POCThis repository is a small JavaScript proof-of-concept for CVE-2026-4800 affecting lodash template handling. It contains two executable PoC files under POCs/, a minimal package.json/package-lock.json pinning lodash 4.17.23, and a README that explains the vulnerability flow in detail. The exploit demonstrates code execution through lodash _.template() by abusing the imports mechanism. In poc1.js, the attacker first pollutes Object.prototype.imports with an inherited enumerable property whose key is a JavaScript formal parameter containing a default expression: x=process.getBuiltinModule("child_process").execSync("curl https://example.com"). When _.template('', {}) is called with a plain object, lodash copies inherited properties via assignInWith()/keysIn(), causing the polluted imports property to be incorporated into template options. Later, lodash constructs a Function(importsKeys, ...) call, treating the attacker-controlled key as a parameter definition and evaluating the default expression, which executes the shell command. poc2.js shows a variant that passes imports directly in the options object rather than relying on prior prototype pollution. Both variants aim to achieve arbitrary command execution in Node.js. The demonstrated payload is basic and hardcoded: it launches curl to https://example.com as a network-visible proof of execution. This makes the repository an operational PoC rather than a detection script. Repository structure is minimal and purpose-built: README.md documents the vulnerability mechanics and references relevant lodash source locations; POCs/poc1.js demonstrates exploitation via polluted Object.prototype; POCs/poc2.js demonstrates direct attacker-controlled imports injection; package metadata only exists to install the vulnerable lodash dependency. There is no framework integration, no persistence, and no post-exploitation logic beyond command execution.threalwinky · Disclosed Apr 1, 2026 · javascript · markdown · local · networkOperational
Exposure surface

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.

VendorProductType
LodashLodashapplication
LodashLodash-Amdapplication
LodashLodash-Esapplication
LodashLodash-Railsapplication
LodashLodash.Templateapplication
FAQ

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.
Activity feed

Recent activity

86 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Nov 23, 2026Oracle Linux 9 : cockpit-files (ELSA-2026-97538) | Tenable®A vulnerability affecting cockpit-files on Oracle Linux 9, covered by advisory ELSA-2026-97538. The listed CVSS vectors indicate network-based exploitation without authentication or user interaction and high confidentiality, integrity, and availability impacts. Exploits and a patch are available; the underlying flaw is not described.Read more ↗tenable nessus pluginsNews · Nov 23, 2026Oracle Linux 9 : cockpit-machines (ELSA-2026-97539) | Tenable®A vulnerability affecting cockpit-machines on Oracle Linux 9, listed under advisory ELSA-2026-97539 and identified as the plugin's CVSS score source. The reported vector indicates unauthenticated network exploitation with high confidentiality, integrity, and availability impacts. The plugin reports available exploits and a patch publication date of November 20, 2026.Read more ↗hawkeye blogNews · Nov 20, 2026Weekly Threat Landscape Digest - Week 47 - HawkEyeA critical Lodash-related vulnerability affecting Confluence Data Center permits unauthenticated or low-privileged remote code execution. The Atlassian section reports no confirmed active exploitation or public exploit and provides fixed releases.Read more ↗tenable nessus pluginsNews · Nov 20, 2026Oracle Linux 10 : cockpit-podman (ELSA-2026-97193) | Tenable®A vulnerability covered by the Oracle Linux 10 cockpit-podman advisory ELSA-2026-97193 and identified as the source of its CVSS scoring. The listed vector indicates network exploitation without privileges or user interaction, with high confidentiality, integrity, and availability impacts. The advisory reports available exploits and a patch publication date of November 18, 2026.Read more ↗
+45 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity20Community discussion across Reddit, Mastodon, and other social sources.