← Vulnerability feed

Vulnerability record · CVE-2026-4800 · published 31 March 2026

CVE-2026-4800: Lodash code injection vulnerability

Lodash · Lodash

Impact: The fix for CVE-2021-23337 (https://github.com/advisories/GHSA-35jh-r3h4-6jhm) added validation for the variable option in _.template but did not apply the same validation to options.imports key names. 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. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function(). Patches: Users should upgrade to version 4.18.0. Workarounds: Do not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names.

9.8 CVSS 3.1 Critical EPSS 2.6% · top 15.2% CWE-94 · Code injection
9.8CVSS 3.1 base score
2.6%EPSS exploitation probability, 30 days
NoNot in CISA KEV
4Affected product versions listed by NVD
81References
10 Sep 2026Last modified by NVD

Description

Impact: The fix for CVE-2021-23337 (https://github.com/advisories/GHSA-35jh-r3h4-6jhm) added validation for the variable option in _.template but did not apply the same validation to options.imports key names. 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. If Object.prototype has been polluted by any other vector, the polluted keys are copied into the imports object and passed to Function(). Patches: Users should upgrade to version 4.18.0. Workarounds: Do not pass untrusted input as key names in options.imports. Only use developer-controlled, static key names.

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

Affected products

4 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://cna.openjsf.org/security-advisories.html Third Party Advisory
https://github.com/advisories/GHSA-35jh-r3h4-6jhm Not Applicable
https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c Not Applicable
https://access.redhat.com/errata/RHBA-2026:21387
https://access.redhat.com/errata/RHSA-2026:10131
https://access.redhat.com/errata/RHSA-2026:10175
https://access.redhat.com/errata/RHSA-2026:10710
https://access.redhat.com/errata/RHSA-2026:10713
https://access.redhat.com/errata/RHSA-2026:11454
https://access.redhat.com/errata/RHSA-2026:11469
https://access.redhat.com/errata/RHSA-2026:11470
https://access.redhat.com/errata/RHSA-2026:11471
https://access.redhat.com/errata/RHSA-2026:11493
https://access.redhat.com/errata/RHSA-2026:11494
https://access.redhat.com/errata/RHSA-2026:11495
https://access.redhat.com/errata/RHSA-2026:11516
https://access.redhat.com/errata/RHSA-2026:12277
https://access.redhat.com/errata/RHSA-2026:12279
https://access.redhat.com/errata/RHSA-2026:13545
https://access.redhat.com/errata/RHSA-2026:13553
https://access.redhat.com/errata/RHSA-2026:13571
https://access.redhat.com/errata/RHSA-2026:13826
https://access.redhat.com/errata/RHSA-2026:14870
https://access.redhat.com/errata/RHSA-2026:14871
https://access.redhat.com/errata/RHSA-2026:16874
https://access.redhat.com/errata/RHSA-2026:17448
https://access.redhat.com/errata/RHSA-2026:17468
https://access.redhat.com/errata/RHSA-2026:17469
https://access.redhat.com/errata/RHSA-2026:17547
https://access.redhat.com/errata/RHSA-2026:17549
https://access.redhat.com/errata/RHSA-2026:17550
https://access.redhat.com/errata/RHSA-2026:17598
https://access.redhat.com/errata/RHSA-2026:17789
https://access.redhat.com/errata/RHSA-2026:19008
https://access.redhat.com/errata/RHSA-2026:19167
https://access.redhat.com/errata/RHSA-2026:19409
https://access.redhat.com/errata/RHSA-2026:19410
https://access.redhat.com/errata/RHSA-2026:19712
https://access.redhat.com/errata/RHSA-2026:20041
https://access.redhat.com/errata/RHSA-2026:20042

Track CVE-2026-4800 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.1CVE-2019-10744Lodash prototype pollution vulnerabilityVersions of lodash lower than 4.17.12 are vulnerable to Prototype Pollution. The function defaultsDeep could be tricked into adding or modifying prop…EPSS 5.0%7.4CVE-2020-8203Lodash allocation without limits vulnerabilityPrototype pollution attack when using _.zipObjectDeep in lodash before 4.17.20.EPSS 5.2%7.2CVE-2021-23337Lodash code injection vulnerabilityLodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.EPSS 21%6.9CVE-2025-13465Lodash prototype pollution vulnerabilityLodash versions 4.0.0 through 4.17.22 are vulnerable to prototype pollution in the _.unset and _.omit functions. An attacker can pass crafted paths w…EPSS 1.8%6.5CVE-2019-1010266Lodash uncontrolled resource consumption vulnerabilitylodash prior to 4.17.11 is affected by: CWE-400: Uncontrolled Resource Consumption. The impact is: Denial of service. The component is: Date handler.…EPSS 3.2%6.5CVE-2018-3721Lodash prototype pollution vulnerabilitylodash node module before 4.17.5 suffers from a Modification of Assumed-Immutable Data (MAID) vulnerability via defaultsDeep, merge, and mergeWith fu…EPSS 2.4%5.6CVE-2018-16487Lodash uncontrolled resource consumption vulnerabilityA prototype pollution vulnerability was found in lodash <4.17.11 where the functions merge, mergeWith, and defaultsDeep can be tricked into adding or…EPSS 1.6%5.3CVE-2026-2950Lodash prototype pollution vulnerabilityImpact: Lodash versions 4.17.23 and earlier are vulnerable to prototype pollution in the _.unset and _.omit functions. The fix for (CVE-2025-13465: h…EPSS 0.38%

Source: NIST National Vulnerability Database (record CVE-2026-4800), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.