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.
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?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| lodash | lodash | from 4.0.0 before 4.18.1 | 4.18.1 |
| lodash | lodash-es | from 4.0.0 before 4.18.1 | 4.18.1 |
| lodash | lodash-amd | from 4.0.0 before 4.18.1 | 4.18.1 |
| lodash | lodash.template | from 4.0.0 before 4.18.1 | 4.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?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | lodash | >= 4.0.0, < 4.18.0 | 4.18.0 | GHSA-r5fr-rjxr-66jc |
| npm | lodash-es | >= 4.0.0, < 4.18.0 | 4.18.0 | GHSA-r5fr-rjxr-66jc |
| npm | lodash-amd | >= 4.0.0, < 4.18.0 | 4.18.0 | GHSA-r5fr-rjxr-66jc |
| npm | lodash.template | >= 4.0.0, < 4.18.0 | 4.18.0 | GHSA-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?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| lodash | lodash | from 4.0.0 before 4.18.0 | application |
| lodash | lodash-amd | from 4.0.0 before 4.18.0 | application |
| lodash | lodash-es | from 4.0.0 before 4.18.0 | application |
| lodash | lodash.template | from 4.0.0 before 4.18.0 | application |
NVD analysis (status Modified), last modified October 15, 2026, 07:18 UTC.
How severe is CVE-2026-4800?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | openjs |
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | redhat-SADP |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
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?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- https://github.com/lodash/lodash/security/advisories/GHSA-r5fr-rjxr-66jc
- https://cna.openjsf.org/security-advisories.html
- https://access.redhat.com/security/cve/CVE-2026-4800 vdb-entry, x_refsource_REDHAT
- RHBZ#2453496 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4800.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:42078 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:24762 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:17789 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:24331 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHBA-2026:21387 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:34342 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:11470 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:10713 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19008 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:11493 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:11494 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:11495 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:11454 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:11469 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:11516 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:11471 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:10710 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19167 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19409 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19410 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16874 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:13553 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:13545 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:22619 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:9742 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:13826 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:36651 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:40945 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:40118 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:41928 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:24977 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19712 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:59833 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:54188 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:56789 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:56912 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:56854 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:36621 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:34100 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60023 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:17598 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:21658 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:48699 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:17448 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:20042 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:44235 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:20041 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:17469 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:40795 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:17468 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:37186 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:29795 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:10175 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:20946 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:20943 vendor-advisory, x_refsource_REDHAT
Who found and reported it?
- dolevmiz1 (reporter)
- bugbunny-research (reporter)
- M0nd0R (reporter)
- UlisesGascon (remediation developer)
- falsyvalues (remediation reviewer)
- jonchurch (remediation reviewer)
- threalwinky (reporter)
- jdalton (remediation reviewer)
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?
- Mar 31, 2026CVE-2026-2950 lodash: prototype pollution
- Jan 21, 2026CVE-2025-13465 lodash: prototype pollution
- Feb 15, 2021CVE-2021-23337 Lodash: code injection (remote code execution)
- Feb 15, 2021CVE-2020-28500 Lodash: regular expression denial of service (ReDoS)
- Jul 15, 2020CVE-2020-8203 lodash: denial of service (resources allocated without limits)
- Jul 17, 2019CVE-2019-1010266 lodash: denial of service (uncontrolled resource consumption)
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.