CVE Tools

CVE-2026-4800

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

CVE-2026-4800 is a code injection in Lodash (CVSS 8.1, High).

No known exploitation. EPSS puts it in the 88th percentile. Fixed in 4.18.1.

Check it yourself

OpenVAS · 77 checks

e.g. OID 1.3.6.1.4.1.25623.1.0.136388

Run the check

Published Updated Sources: CVE.org, NVD

What to do

Find your product and version, then upgrade to the build on the right.

  • LodashAffected: ≥ 4.0.0, < 4.18.1Upgrade to: 4.18.1Stated by: CVE record
  • Lodash-esAffected: ≥ 4.0.0, < 4.18.1Upgrade to: 4.18.1Stated by: CVE record
  • Lodash-amdAffected: ≥ 4.0.0, < 4.18.1Upgrade to: 4.18.1Stated by: CVE record
  • Lodash.templateAffected: ≥ 4.0.0, < 4.18.1Upgrade to: 4.18.1Stated by: CVE record

Versions as the sources state them. Full version matrix after sign-in

Check it yourselfA free OpenVAS check exists for this CVE. Run it against your hosts.
Is your organisation exposed?Request a free pilot to establish which checks fit your systems.

SeguriScan is made by IntruForce, a cybersecurity company in Madrid, Spain. Links open intruforce.com.

What it is

From the CVE record

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.

In plain language

No plain-language summary for this CVE yet.

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS88th
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

No public exploit or proof of concept found in the sources we track.

EPSS

3.1% chance of exploitation activity in the next 30 days, which ranks it in the 88th percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

70 events over 198 days, from the signal feeds we watch.

  1. Patch availablerecord updated
  2. Patch availablerecord updated
  3. Patch availablerecord updated
  4. Patch availablerecord updated
  5. Patch availablerecord updated
  6. Patch availablerecord updated

Affected products

Scale

How widely the affected products are used. This is not a count of vulnerable hosts.

Estimate Public sources, each figure dated. How much of it is already patched is not known.

lodash

Library
  • 863Mdownloads / month

    Npm downloads, last 30 days.

    npm ↗ · as of 2 Dec 2026 · High confidence

Version split · npm · as of 2 Dec 2026

  • 4.1869%
  • 4.1729%
  • 3.10<1%
  • 2.4<1%
  • 1.0<1%
  • 0.9<1%
  • Other listed<1%

Technical detail

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Scored 8.1 by NVD.

How it is reached

  • Attack Vector NetworkExploitable remotely over the network without any special conditions
  • Attack Complexity HighRequires specific conditions like a race condition or non-default configuration
  • Privileges Required NoneNo authentication required — anyone can exploit this
  • User Interaction NoneNo user interaction needed — fully automated exploitation

Scope

  • Scope UnchangedImpact is limited to the vulnerable component itself

Impact if exploited

  • Confidentiality HighTotal information disclosure — all data in the component is compromised
  • Integrity HighTotal loss of integrity — attacker can modify any data in the component
  • Availability HighTotal denial of service — the component is completely unavailable

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2026-4800

Is CVE-2026-4800 being exploited?
No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 3.1%.
Which versions are affected by CVE-2026-4800?
Lodash: ≥ 4.0.0, < 4.18.1. Lodash-es: ≥ 4.0.0, < 4.18.1. Lodash-amd: ≥ 4.0.0, < 4.18.1. 1 more product is listed in the record.
How do I fix or mitigate CVE-2026-4800?
Upgrade to 4.18.1 or later. The advisory is on github.com.

Last updated

Related articles

All articles

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Lodash, not every advisory.