CVE-2026-4800: lodash vulnerable to Code Injection via `_.template` imports key names
Vendor fix available · Affected: lodash · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 86% of scored CVEs
DescriptionCVE.org
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.
Affected products4
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- lodash · lodashfrom 4.0.0 before 4.18.1
- lodash · lodash-esfrom 4.0.0 before 4.18.1
- lodash · lodash-amdfrom 4.0.0 before 4.18.1
- lodash · lodash.templatefrom 4.0.0 before 4.18.1
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Possible (1 to 10%). EPSS between 1% and 10%.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- lodash
- Published
- March 2026
CoverageNo articles yet
No CyberSIXT article names CVE-2026-4800 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-94cwe.mitre.org
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
28 more references are in the CVE record.