Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-4800: Code Injection in Lodash _.template Import Key Names

Published Mar 31, 2026 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days43 mentions · peak 12 in a dayToday
CVSS9.8Critical · v3.1
EPSS3.1%88th 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 _.template caused by insufficient validation of options.imports key names before they reach the Function() constructor. The fix for CVE-2021-23337 validated the variable option but omitted equivalent validation for import keys. Attacker-controlled keys can inject default-parameter expressions that execute arbitrary code during template compilation. Additionally, imports are merged using assignInWith, which enumerates inherited properties through for..in; malicious keys introduced into Object.prototype through a separate prototype-pollution vulnerability can therefore reach the same execution 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 permits arbitrary JavaScript execution in the affected application's execution context. In server-side deployments, this can result in remote code execution with the application's privileges, potentially exposing sensitive data, permitting unauthorized data modification, and disrupting service. Actual reachability and severity depend on how the application constructs template imports and the privileges and capabilities available to its JavaScript runtime.

Mitigation

If you can’t patch tonight, do this now.

Do not pass untrusted input as key names in options.imports; use only developer-controlled, static key names. Also address separate prototype-pollution weaknesses that could introduce malicious inherited keys, because restricting explicitly supplied import keys alone does not eliminate the inherited-property attack path.

Remediation

Patch, then assume compromise.

Upgrade affected lodash, lodash-es, lodash-amd, and lodash.template dependencies to version 4.18.1 or a later fixed release. For products bundling these dependencies, install the applicable vendor security update and ensure that deployed application bundles incorporate the corrected dependency.

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 27, 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 affected lodash, lodash-es, lodash-amd, and lodash.template dependencies to version 4.18.1 or a later fixed release. For products bundling these dependencies, install the applicable vendor security update and ensure that deployed application bundles incorporate the corrected dependency.
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 3.1% (88th percentile) as of Nov 27, 2026.
Activity feed

Recent activity

89 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 27, 2026Oracle Linux 10 : cockpit-files (ELSA-2026-97194) | Tenable®A vulnerability affecting cockpit-files on Oracle Linux 10, covered by advisory ELSA-2026-97194. The listed CVSS vectors indicate network exploitation without authentication or user interaction and high confidentiality, integrity, and availability impact. Exploits are available, and a patch was published on November 26, 2026. The content does not describe the underlying flaw.Read more ↗tenable nessus pluginsNews · Nov 26, 2026Oracle Linux 10 : cockpit-machines (ELSA-2026-97238) | Tenable®A vulnerability covered by the Oracle Linux 10 cockpit-machines advisory ELSA-2026-97238. Its listed CVSS v3 vector indicates network exploitation without privileges or user interaction, with high confidentiality, integrity, and availability impacts.Read more ↗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 ↗
+48 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.