CVE-2026-4800lodash 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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu, npm: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-lodash | Fix pending | UBUNTU-CVE-2026-4800 | |
| Ubuntu 26.04 | node-lodash | Fix pending | 4.17.23+dfsg-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-4800 |
| Ubuntu 25.10 | node-lodash | Fixed | 4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1 | UBUNTU-CVE-2026-4800 |
| Ubuntu 24.04 | node-lodash | Fix pending | 4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-4800 |
| Ubuntu 22.04 | node-lodash | Fix pending | 4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-4800 |
| Ubuntu 20.04 | node-lodash | Fix pending | 4.17.15+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-4800 |
| Ubuntu 18.04 | node-lodash | Fix pending | 4.17.4+dfsg-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-4800 |
| Ubuntu 16.04 | node-lodash | Fix pending | 2.4.1+dfsg-3ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-4800 |
| Debian 14 | node-lodash | Fixed | 4.18.1+dfsg-1 | DEBIAN-CVE-2026-4800 |
| Debian 13 | node-lodash | Fixed | 4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1 | DEBIAN-CVE-2026-4800 |
| Debian 12 | node-lodash | Fixed | 4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1 | DEBIAN-CVE-2026-4800 |
| Red Hat Enterprise Linux 10 | cockpit | Fixed | 0:356.1-1.el10_2 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-bridge | Fixed | 0:356.1-1.el10_2 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-doc | Fixed | 0:356.1-1.el10_2 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-files | Fixed | 0:43-1.el10 | RHSA-2026:97194 |
| Red Hat Enterprise Linux 10 | cockpit-ha-cluster | Fixed | 0:0.12.1-1.el10_1.3 | RHSA-2026:19008 |
| Red Hat Enterprise Linux 10 | cockpit-image-builder | Fixed | 0:94.3-1.el10_2 | RHSA-2026:24331 |
| Red Hat Enterprise Linux 10 | cockpit-machines | Fixed | 0:355-1.el10 | RHSA-2026:97238 |
| Red Hat Enterprise Linux 10 | cockpit-packagekit | Fixed | 0:356.1-1.el10_2 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-podman | Fixed | 0:129-1.el10 | RHSA-2026:97193 |
| Red Hat Enterprise Linux 10 | cockpit-session-recording | Not affected | ||
| Red Hat Enterprise Linux 10 | cockpit-storaged | Fixed | 0:356.1-1.el10_2 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-system | Fixed | 0:356.1-1.el10_2 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-ws | Fixed | 0:356.1-1.el10_2 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-ws-selinux | Fixed | 0:356.1-1.el10_2 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | firefox | Not affected | ||
| Red Hat Enterprise Linux 10 | gjs | Not affected | ||
| Red Hat Enterprise Linux 10 | gjs-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-common | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-epn | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-client-samba | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-common | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-selinux | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-selinux-luna | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-selinux-nfast | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-common | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-dns | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 10 | ipa-server-trust-ad | Not affected | ||
| Red Hat Enterprise Linux 10 | librados-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | librados2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | libradospp-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | librbd-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | librbd1 | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | linux-sgx | Not affected | ||
| Red Hat Enterprise Linux 10 | pcs | Fixed | 0:0.12.2-3.el10_2.1 | RHSA-2026:10713 |
| Red Hat Enterprise Linux 10 | pcs-snmp | Fixed | 0:0.12.1-1.el10_1.3 | RHSA-2026:19008 |
| Red Hat Enterprise Linux 10 | python3-ipaclient | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipalib | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipaserver | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ipatests | Not affected | ||
| Red Hat Enterprise Linux 10 | qt6-qtbase | Not affected | ||
| Red Hat Enterprise Linux 10 | qt6-qtbase-common | Not affected | ||
| Red Hat Enterprise Linux 10 | qt6-qtbase-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | qt6-qtbase-examples | Not affected | ||
| Red Hat Enterprise Linux 10 | qt6-qtbase-gui | Not affected | ||
| Red Hat Enterprise Linux 10 | qt6-qtbase-mysql | Not affected | ||
| Red Hat Enterprise Linux 10 | qt6-qtbase-odbc | Not affected | ||
| Red Hat Enterprise Linux 10 | qt6-qtbase-postgresql | Not affected | ||
| Red Hat Enterprise Linux 10 | qt6-qtbase-private-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | qt6-qtbase-static | Not affected | ||
| Red Hat Enterprise Linux 10 | rhsm-icons | Fixed | 0:17-1.el10 | RHSA-2026:97090 |
| Red Hat Enterprise Linux 10 | sgx-common | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-mpa | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-pccs | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-pccs-admin | Not affected | ||
| Red Hat Enterprise Linux 10 | sgx-pckid-tool | Not affected | ||
| Red Hat Enterprise Linux 10 | subscription-manager-cockpit | Fixed | 0:17-1.el10 | RHSA-2026:97090 |
| Red Hat Enterprise Linux 10 | tdx-qgs | Not affected | ||
| Red Hat Enterprise Linux 10 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 9 | cockpit | Fixed | 0:356.1-1.el9_8 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | cockpit-bridge | Fixed | 0:356.1-1.el9_8 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | cockpit-doc | Fixed | 0:356.1-1.el9_8 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | cockpit-files | Fixed | 0:43-1.el9 | RHSA-2026:97538 |
| Red Hat Enterprise Linux 9 | cockpit-machines | Fixed | 0:355-1.el9 | RHSA-2026:97539 |
| Red Hat Enterprise Linux 9 | cockpit-packagekit | Fixed | 0:356.1-1.el9_8 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | cockpit-podman | Fixed | 0:129-1.el9 | RHSA-2026:97537 |
| Red Hat Enterprise Linux 9 | cockpit-storaged | Fixed | 0:356.1-1.el9_8 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | cockpit-system | Fixed | 0:356.1-1.el9_8 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | cockpit-ws | Fixed | 0:356.1-1.el9_8 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | cockpit-ws-selinux | Fixed | 0:356.1-1.el9_8 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | firefox | Not affected | ||
| Red Hat Enterprise Linux 9 | firefox-x11 | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs | Not affected | ||
| Red Hat Enterprise Linux 9 | gjs-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-common | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-epn | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-client-samba | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-common | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-selinux-luna | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-selinux-nfast | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-common | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-dns | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-encrypted-dns | Not affected | ||
| Red Hat Enterprise Linux 9 | ipa-server-trust-ad | Not affected | ||
| Red Hat Enterprise Linux 9 | librados-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | librados2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | libradospp-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | librbd-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | librbd1 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | linux-sgx | Not affected | ||
| Red Hat Enterprise Linux 9 | pcs | Fixed | 0:0.11.10-1.el9_7.3 | RHSA-2026:19167 |
| Red Hat Enterprise Linux 9 | pcs-snmp | Fixed | 0:0.11.11-2.el9_8.1 | RHSA-2026:19167 |
| Red Hat Enterprise Linux 9 | python3-ipaclient | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipalib | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipaserver | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ipatests | Not affected | ||
| Red Hat Enterprise Linux 9 | qt5-qtbase | Not affected | ||
| Red Hat Enterprise Linux 9 | qt5-qtbase-common | Not affected | ||
| Red Hat Enterprise Linux 9 | qt5-qtbase-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | qt5-qtbase-examples | Not affected | ||
| Red Hat Enterprise Linux 9 | qt5-qtbase-gui | Not affected | ||
| Red Hat Enterprise Linux 9 | qt5-qtbase-mysql | Not affected | ||
| Red Hat Enterprise Linux 9 | qt5-qtbase-odbc | Not affected | ||
| Red Hat Enterprise Linux 9 | qt5-qtbase-postgresql | Not affected | ||
| Red Hat Enterprise Linux 9 | qt5-qtbase-private-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | qt5-qtbase-static | Not affected | ||
| Red Hat Enterprise Linux 9 | rhsm-icons | Fixed | 0:17-1.el9 | RHSA-2026:97514 |
| Red Hat Enterprise Linux 9 | sgx-common | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-mpa | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-pccs | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-pccs-admin | Not affected | ||
| Red Hat Enterprise Linux 9 | sgx-pckid-tool | Not affected | ||
| Red Hat Enterprise Linux 9 | subscription-manager-cockpit | Fixed | 0:17-1.el9 | RHSA-2026:97514 |
| Red Hat Enterprise Linux 9 | tdx-qgs | Not affected | ||
| Red Hat Enterprise Linux 9 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cockpit-bridge | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cockpit-dashboard | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cockpit-doc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cockpit-machines | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cockpit-packagekit | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cockpit-pcp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cockpit-podman | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cockpit-storaged | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cockpit-system | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cockpit-ws | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | firefox | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Not affected | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | pcs | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | qt5-qtbase | Not affected | ||
| Red Hat Enterprise Linux 8 | qt5-qtbase-common | Not affected | ||
| Red Hat Enterprise Linux 8 | qt5-qtbase-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | qt5-qtbase-examples | Not affected | ||
| Red Hat Enterprise Linux 8 | qt5-qtbase-gui | Not affected | ||
| Red Hat Enterprise Linux 8 | qt5-qtbase-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | qt5-qtbase-odbc | Not affected | ||
| Red Hat Enterprise Linux 8 | qt5-qtbase-postgresql | Not affected | ||
| Red Hat Enterprise Linux 8 | qt5-qtbase-private-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | qt5-qtbase-static | Not affected | ||
| Red Hat Enterprise Linux 8 | thunderbird | Not affected | ||
| Red Hat Enterprise Linux 7 | firefox | Not affected | ||
| AlmaLinux 10 | cockpit-files | Fixed | 43-1.el10 | ALSA-2026:97194 |
| AlmaLinux 10 | cockpit-ha-cluster | Fixed | 0.12.1-1.el10_1.3 | ALSA-2026:10713 |
| AlmaLinux 10 | cockpit-machines | Fixed | 355-1.el10 | ALSA-2026:97238 |
| AlmaLinux 10 | cockpit-podman | Fixed | 129-1.el10 | ALSA-2026:97193 |
| AlmaLinux 9 | cockpit-files | Fixed | 43-1.el9 | ALSA-2026:97538 |
| AlmaLinux 9 | cockpit-machines | Fixed | 355-1.el9 | ALSA-2026:97539 |
| AlmaLinux 9 | cockpit-podman | Fixed | 129-1.el9 | ALSA-2026:97537 |
| AlmaLinux 9 | pcs | Fixed | 0.11.10-1.el9_7.3 | ALSA-2026:19167 |
| AlmaLinux 9 | pcs-snmp | Fixed | 0.11.10-1.el9_7.3 | ALSA-2026:19167 |
| Rocky Linux 10 | cockpit-files | Fixed | 0:43-1.el10 | RLSA-2026:97194 |
| Rocky Linux 10 | cockpit-image-builder | Fixed | 0:94.3-1.el10_2 | RLSA-2026:24331 |
| Rocky Linux 10 | cockpit-machines | Fixed | 0:355-1.el10 | RLSA-2026:97238 |
| Rocky Linux 10 | cockpit-podman | Fixed | 0:129-1.el10 | RLSA-2026:97193 |
| Rocky Linux 10 | rhsm-icons | Fixed | 0:17-1.el10.rocky.0.1 | RLSA-2026:97090 |
| Rocky Linux 10 | subscription-manager-cockpit | Fixed | 0:17-1.el10.rocky.0.1 | RLSA-2026:97090 |
| Rocky Linux 9 | cockpit-files | Fixed | 0:43-1.el9 | RLSA-2026:97538 |
| Rocky Linux 9 | cockpit-machines | Fixed | 0:355-1.el9 | RLSA-2026:97539 |
| Rocky Linux 9 | cockpit-podman | Fixed | 0:129-1.el9 | RLSA-2026:97537 |
| Rocky Linux 9 | pcs | Fixed | 0:0.11.11-2.el9_8.1 | RLSA-2026:10710 |
| Rocky Linux 9 | rhsm-icons | Fixed | 0:17-1.el9.rocky.0.1 | RLSA-2026:97514 |
| Rocky Linux 9 | subscription-manager-cockpit | Fixed | 0:17-1.el9.rocky.0.1 | RLSA-2026:97514 |
| npm library | lodash | Fixed | 4.18.0 | GHSA-r5fr-rjxr-66jc |
| npm library | lodash-amd | Fixed | 4.18.0 | GHSA-r5fr-rjxr-66jc |
| npm library | lodash-es | Fixed | 4.18.0 | GHSA-r5fr-rjxr-66jc |
| npm library | lodash.template | Fixed | 4.18.0 | GHSA-r5fr-rjxr-66jc |
What the vendor says
As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- lodash: affected: 4.0.0 to before 4.18.1, 4.18.1 not affected; fixed in
4.18.1 - lodash-es: affected: 4.0.0 to before 4.18.1, 4.18.1 not affected; fixed in
4.18.1 - lodash-amd: affected: 4.0.0 to before 4.18.1, 4.18.1 not affected; fixed in
4.18.1 - lodash.template: affected: 4.0.0 to before 4.18.1, 4.18.1 not affected; fixed in
4.18.1
References
- https://github.com/lodash/lodash/security/advisories/GHSA-r5fr-rjxr-66jc
- https://cna.openjsf.org/security-advisories.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.