CVE-2026-4800
lodash vulnerable to Code Injection via `_.template` imports key names
Reported by openjs · Published March 31, 2026
lodash-es is fixed in 4.18.0 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| lodash-es | npm | 4.18.0 |
| lodash-amd | npm | 4.18.0 |
| langfuse-2 | Chainguard | 2.95.12-r17 |
| kubeflow-pipelines | Wolfi | 2.16.0-r11 |
| py3-jupyterlab | Wolfi | 4.6.1-r1 |
| py3-jupyterlab | Chainguard | 4.6.1-r1 |
| gitlab-rails-ce-19.1 | Chainguard | 19.1.7-r6 |
| kubeflow-centraldashboard | Chainguard | 1.10.0-r18 |
| json-server | Chainguard | 0.17.4-r6 |
| prism | Chainguard | 5.15.6-r2 |
| pcs | errata.rockylinux.org | 0.11.11-2.el9, 0.11.10-1.el9, 0:0.11.10-1.el9_7.3.src, 0:0.11.10-1.el9_7.3.s390x |
| sqlpad | Chainguard | 7.5.7-r17 |
22 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| lodash | lodash | 4.0.0, 4.18.1 |
| lodash | lodash-es | 4.0.0, 4.18.1 |
| lodash | lodash-amd | 4.0.0, 4.18.1 |
| lodash | lodash.template | 4.0.0, 4.18.1 |
| Red Hat | Red Hat Satellite 6.18 | 1777911535 |
| Red Hat | Red Hat Openshift Data Foundation 4.19 | 1776707724, 1784056134 |
| Red Hat | Red Hat Connectivity Link 1 | |
| chainguard | langfuse-2 | 0 |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | 0:0.11.9-2.el9_6.4 |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | 0:0.11.7-2.el9_4.7 |
| wolfi | kubeflow-pipelines | 0 |
| Red Hat | Red Hat OpenShift AI 2.25 | |
| Red Hat | Cluster Observability Operator 1.5.0 | 1782839279 |
| Red Hat | Logging Subsystem for Red Hat OpenShift | |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | 0:0.12.0-3.el10_0.5 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| wolfi | py3-jupyterlab | 0 |
| Red Hat | Logging Subsystem for Red Hat OpenShift | |
| chainguard | py3-jupyterlab | 0 |
| Red Hat | Red Hat build of Apache Camel - HawtIO 4 |
…and 579 more
Timeline
- Mar 31, 2026 CVE Published
- Mar 31, 2026 PoC Published (4 in total, the first dated here)
- Apr 1, 2026 EPSS Score (30 in total, the first dated here)
- Apr 27, 2026 Security Advisory (98 in total, the first dated here)
- Apr 27, 2026 Distribution Patch (99 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-4800
vulnetix vdb fixes CVE-2026-4800
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-4800/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-4800 advisory
- https://github.com/advisories/GHSA-r5fr-rjxr-66jc advisory
- https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c patch
- https://github.com/advisories/GHSA-35jh-r3h4-6jhm advisory
- https://github.com/lodash/lodash url
- https://access.redhat.com/security/cve/CVE-2026-4800 vdb
- RHBZ#2453496 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4800.json url
- https://access.redhat.com/errata/RHSA-2026:42078 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:24762 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:17789 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:24331 vendor-advisory
- https://access.redhat.com/errata/RHBA-2026:21387 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:34342 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:11470 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10713 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19008 vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:11493 vendor-advisory
…and 65 more