CVEBrief

Home / lodash / lodash / CVE-2026-4800

CVE-2026-4800: is it exploited, and which versions of lodash are affected and fixed?

CVE-2026-4800 is a code injection (remote code execution) vulnerability in lodash. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: lodash from 4.0.0 before 4.18.0, lodash-es from 4.0.0 before 4.18.0, lodash-amd from 4.0.0 before 4.18.0 and 1 more (GitHub advisory GHSA-r5fr-rjxr-66jc). Fixed in 4.18.0 (GitHub advisory GHSA-r5fr-rjxr-66jc). Severity: High (8.1, CVSS 3.1, from openjs).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:12 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:38 UTC
Affected
lodash from 4.0.0 before 4.18.0, lodash-es from 4.0.0 before 4.18.0, lodash-amd from 4.0.0 before 4.18.0 and 1 more
GitHub advisory GHSA-r5fr-rjxr-66jc
Fixed in
4.18.0
GitHub advisory GHSA-r5fr-rjxr-66jc
Severity
High 8.1
CVSS 3.1 from openjs
Exploit odds (EPSS)
3.07% in 30 days
higher than 88% of CVEs; FIRST, December 2, 2026

What is CVE-2026-4800?

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

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.

From the CVE record by openjs, last updated October 15, 2026, 06:39 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
lodashlodashfrom 4.0.0 before 4.18.14.18.1
lodashlodash-esfrom 4.0.0 before 4.18.14.18.1
lodashlodash-amdfrom 4.0.0 before 4.18.14.18.1
lodashlodash.templatefrom 4.0.0 before 4.18.14.18.1

As the CVE record by openjs states it, last updated October 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
npmlodash>= 4.0.0, < 4.18.04.18.0GHSA-r5fr-rjxr-66jc
npmlodash-es>= 4.0.0, < 4.18.04.18.0GHSA-r5fr-rjxr-66jc
npmlodash-amd>= 4.0.0, < 4.18.04.18.0GHSA-r5fr-rjxr-66jc
npmlodash.template>= 4.0.0, < 4.18.04.18.0GHSA-r5fr-rjxr-66jc

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 1, 2026. Summary: lodash vulnerable to Code Injection via `_.template` imports key names.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
lodashlodashfrom 4.0.0 before 4.18.0application
lodashlodash-amdfrom 4.0.0 before 4.18.0application
lodashlodash-esfrom 4.0.0 before 4.18.0application
lodashlodash.templatefrom 4.0.0 before 4.18.0application

NVD analysis (status Modified), last modified October 15, 2026, 07:18 UTC.

How severe is CVE-2026-4800?

ScoreVersionVectorSource
High 8.1CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:Hopenjs
High 8.1CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:Hredhat-SADP
Critical 9.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2026-4800 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: total (CISA ADP, March 31, 2026)
EPSS
3.07% probability of exploitation activity in the next 30 days, percentile 88.0 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
March 25, 2026
Published
March 31, 2026, 19:25 UTC
CVE record updated
October 15, 2026, 06:39 UTC by openjs
NVD
Modified, last modified October 15, 2026, 07:18 UTC
Last checked
CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:12 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect lodash?

Every CVE in lodash

Questions about CVE-2026-4800

Is CVE-2026-4800 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 3.07% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of lodash are affected by CVE-2026-4800?

lodash from 4.0.0 before 4.18.0, lodash-es from 4.0.0 before 4.18.0, lodash-amd from 4.0.0 before 4.18.0 and lodash.template from 4.0.0 before 4.18.0, per the GitHub advisory GHSA-r5fr-rjxr-66jc. The tables above give every range the sources list.

Which version fixes CVE-2026-4800?

4.18.0, per the GitHub advisory GHSA-r5fr-rjxr-66jc. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-4800?

High (8.1, CVSS 3.1, from openjs). The severity table above shows each score with its source.

Where is the official record of CVE-2026-4800?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.