CVEfocus › CVE database › CVE-2026-4800

CVE-2026-4800lodash vulnerable to Code Injection via `_.template` imports key names

CVSS 8.1 HighEPSS 2.8% (higher than 87% of CVEs)Published 2026-03-31Updated 2026-10-15Assigner: openjs

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.

CWE-94

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

61Fixed
19Fix pending
11Will not fix
120Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-lodashFix pendingUBUNTU-CVE-2026-4800
Ubuntu 26.04node-lodashFix pending4.17.23+dfsg-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-4800
Ubuntu 25.10node-lodashFixed4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1UBUNTU-CVE-2026-4800
Ubuntu 24.04node-lodashFix pending4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-4800
Ubuntu 22.04node-lodashFix pending4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-4800
Ubuntu 20.04node-lodashFix pending4.17.15+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-4800
Ubuntu 18.04node-lodashFix pending4.17.4+dfsg-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-4800
Ubuntu 16.04node-lodashFix pending2.4.1+dfsg-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-4800
Debian 14node-lodashFixed4.18.1+dfsg-1DEBIAN-CVE-2026-4800
Debian 13node-lodashFixed4.17.21+dfsg+~cs8.31.198.20210220-9+deb13u1DEBIAN-CVE-2026-4800
Debian 12node-lodashFixed4.17.21+dfsg+~cs8.31.198.20210220-9+deb12u1DEBIAN-CVE-2026-4800
Red Hat Enterprise Linux 10cockpitFixed0:356.1-1.el10_2RHBA-2026:21388
Red Hat Enterprise Linux 10cockpit-bridgeFixed0:356.1-1.el10_2RHBA-2026:21388
Red Hat Enterprise Linux 10cockpit-docFixed0:356.1-1.el10_2RHBA-2026:21388
Red Hat Enterprise Linux 10cockpit-filesFixed0:43-1.el10RHSA-2026:97194
Red Hat Enterprise Linux 10cockpit-ha-clusterFixed0:0.12.1-1.el10_1.3RHSA-2026:19008
Red Hat Enterprise Linux 10cockpit-image-builderFixed0:94.3-1.el10_2RHSA-2026:24331
Red Hat Enterprise Linux 10cockpit-machinesFixed0:355-1.el10RHSA-2026:97238
Red Hat Enterprise Linux 10cockpit-packagekitFixed0:356.1-1.el10_2RHBA-2026:21388
Red Hat Enterprise Linux 10cockpit-podmanFixed0:129-1.el10RHSA-2026:97193
Red Hat Enterprise Linux 10cockpit-session-recordingNot affected
Red Hat Enterprise Linux 10cockpit-storagedFixed0:356.1-1.el10_2RHBA-2026:21388
Red Hat Enterprise Linux 10cockpit-systemFixed0:356.1-1.el10_2RHBA-2026:21388
Red Hat Enterprise Linux 10cockpit-wsFixed0:356.1-1.el10_2RHBA-2026:21388
Red Hat Enterprise Linux 10cockpit-ws-selinuxFixed0:356.1-1.el10_2RHBA-2026:21388
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 10gjsNot affected
Red Hat Enterprise Linux 10gjs-develNot affected
Red Hat Enterprise Linux 10grafanaNot affected
Red Hat Enterprise Linux 10grafana-pcpNot affected
Red Hat Enterprise Linux 10grafana-selinuxNot affected
Red Hat Enterprise Linux 10ipaNot affected
Red Hat Enterprise Linux 10ipa-clientNot affected
Red Hat Enterprise Linux 10ipa-client-commonNot affected
Red Hat Enterprise Linux 10ipa-client-encrypted-dnsNot affected
Red Hat Enterprise Linux 10ipa-client-epnNot affected
Red Hat Enterprise Linux 10ipa-client-sambaNot affected
Red Hat Enterprise Linux 10ipa-commonNot affected
Red Hat Enterprise Linux 10ipa-selinuxNot affected
Red Hat Enterprise Linux 10ipa-selinux-lunaNot affected
Red Hat Enterprise Linux 10ipa-selinux-nfastNot affected
Red Hat Enterprise Linux 10ipa-serverNot affected
Red Hat Enterprise Linux 10ipa-server-commonNot affected
Red Hat Enterprise Linux 10ipa-server-dnsNot affected
Red Hat Enterprise Linux 10ipa-server-encrypted-dnsNot affected
Red Hat Enterprise Linux 10ipa-server-trust-adNot affected
Red Hat Enterprise Linux 10librados-develFix pending
Affected
Red Hat Enterprise Linux 10librados2Fix pending
Affected
Red Hat Enterprise Linux 10libradospp-develFix pending
Affected
Red Hat Enterprise Linux 10librbd-develFix pending
Affected
Red Hat Enterprise Linux 10librbd1Fix pending
Affected
Red Hat Enterprise Linux 10linux-sgxNot affected
Red Hat Enterprise Linux 10pcsFixed0:0.12.2-3.el10_2.1RHSA-2026:10713
Red Hat Enterprise Linux 10pcs-snmpFixed0:0.12.1-1.el10_1.3RHSA-2026:19008
Red Hat Enterprise Linux 10python3-ipaclientNot affected
Red Hat Enterprise Linux 10python3-ipalibNot affected
Red Hat Enterprise Linux 10python3-ipaserverNot affected
Red Hat Enterprise Linux 10python3-ipatestsNot affected
Red Hat Enterprise Linux 10qt6-qtbaseNot affected
Red Hat Enterprise Linux 10qt6-qtbase-commonNot affected
Red Hat Enterprise Linux 10qt6-qtbase-develNot affected
Red Hat Enterprise Linux 10qt6-qtbase-examplesNot affected
Red Hat Enterprise Linux 10qt6-qtbase-guiNot affected
Red Hat Enterprise Linux 10qt6-qtbase-mysqlNot affected
Red Hat Enterprise Linux 10qt6-qtbase-odbcNot affected
Red Hat Enterprise Linux 10qt6-qtbase-postgresqlNot affected
Red Hat Enterprise Linux 10qt6-qtbase-private-develNot affected
Red Hat Enterprise Linux 10qt6-qtbase-staticNot affected
Red Hat Enterprise Linux 10rhsm-iconsFixed0:17-1.el10RHSA-2026:97090
Red Hat Enterprise Linux 10sgx-commonNot affected
Red Hat Enterprise Linux 10sgx-libsNot affected
Red Hat Enterprise Linux 10sgx-mpaNot affected
Red Hat Enterprise Linux 10sgx-pccsNot affected
Red Hat Enterprise Linux 10sgx-pccs-adminNot affected
Red Hat Enterprise Linux 10sgx-pckid-toolNot affected
Red Hat Enterprise Linux 10subscription-manager-cockpitFixed0:17-1.el10RHSA-2026:97090
Red Hat Enterprise Linux 10tdx-qgsNot affected
Red Hat Enterprise Linux 10thunderbirdNot affected
Red Hat Enterprise Linux 9cockpitFixed0:356.1-1.el9_8RHBA-2026:21387
Red Hat Enterprise Linux 9cockpit-bridgeFixed0:356.1-1.el9_8RHBA-2026:21387
Red Hat Enterprise Linux 9cockpit-docFixed0:356.1-1.el9_8RHBA-2026:21387
Red Hat Enterprise Linux 9cockpit-filesFixed0:43-1.el9RHSA-2026:97538
Red Hat Enterprise Linux 9cockpit-machinesFixed0:355-1.el9RHSA-2026:97539
Red Hat Enterprise Linux 9cockpit-packagekitFixed0:356.1-1.el9_8RHBA-2026:21387
Red Hat Enterprise Linux 9cockpit-podmanFixed0:129-1.el9RHSA-2026:97537
Red Hat Enterprise Linux 9cockpit-storagedFixed0:356.1-1.el9_8RHBA-2026:21387
Red Hat Enterprise Linux 9cockpit-systemFixed0:356.1-1.el9_8RHBA-2026:21387
Red Hat Enterprise Linux 9cockpit-wsFixed0:356.1-1.el9_8RHBA-2026:21387
Red Hat Enterprise Linux 9cockpit-ws-selinuxFixed0:356.1-1.el9_8RHBA-2026:21387
Red Hat Enterprise Linux 9firefoxNot affected
Red Hat Enterprise Linux 9firefox-x11Not affected
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9grafana-pcpNot affected
Red Hat Enterprise Linux 9grafana-selinuxNot affected
Red Hat Enterprise Linux 9ipaNot affected
Red Hat Enterprise Linux 9ipa-clientNot affected
Red Hat Enterprise Linux 9ipa-client-commonNot affected
Red Hat Enterprise Linux 9ipa-client-encrypted-dnsNot affected
Red Hat Enterprise Linux 9ipa-client-epnNot affected
Red Hat Enterprise Linux 9ipa-client-sambaNot affected
Red Hat Enterprise Linux 9ipa-commonNot affected
Red Hat Enterprise Linux 9ipa-selinuxNot affected
Red Hat Enterprise Linux 9ipa-selinux-lunaNot affected
Red Hat Enterprise Linux 9ipa-selinux-nfastNot affected
Red Hat Enterprise Linux 9ipa-serverNot affected
Red Hat Enterprise Linux 9ipa-server-commonNot affected
Red Hat Enterprise Linux 9ipa-server-dnsNot affected
Red Hat Enterprise Linux 9ipa-server-encrypted-dnsNot affected
Red Hat Enterprise Linux 9ipa-server-trust-adNot affected
Red Hat Enterprise Linux 9librados-develFix pending
Affected
Red Hat Enterprise Linux 9librados2Fix pending
Affected
Red Hat Enterprise Linux 9libradospp-develFix pending
Affected
Red Hat Enterprise Linux 9librbd-develFix pending
Affected
Red Hat Enterprise Linux 9librbd1Fix pending
Affected
Red Hat Enterprise Linux 9linux-sgxNot affected
Red Hat Enterprise Linux 9pcsFixed0:0.11.10-1.el9_7.3RHSA-2026:19167
Red Hat Enterprise Linux 9pcs-snmpFixed0:0.11.11-2.el9_8.1RHSA-2026:19167
Red Hat Enterprise Linux 9python3-ipaclientNot affected
Red Hat Enterprise Linux 9python3-ipalibNot affected
Red Hat Enterprise Linux 9python3-ipaserverNot affected
Red Hat Enterprise Linux 9python3-ipatestsNot affected
Red Hat Enterprise Linux 9qt5-qtbaseNot affected
Red Hat Enterprise Linux 9qt5-qtbase-commonNot affected
Red Hat Enterprise Linux 9qt5-qtbase-develNot affected
Red Hat Enterprise Linux 9qt5-qtbase-examplesNot affected
Red Hat Enterprise Linux 9qt5-qtbase-guiNot affected
Red Hat Enterprise Linux 9qt5-qtbase-mysqlNot affected
Red Hat Enterprise Linux 9qt5-qtbase-odbcNot affected
Red Hat Enterprise Linux 9qt5-qtbase-postgresqlNot affected
Red Hat Enterprise Linux 9qt5-qtbase-private-develNot affected
Red Hat Enterprise Linux 9qt5-qtbase-staticNot affected
Red Hat Enterprise Linux 9rhsm-iconsFixed0:17-1.el9RHSA-2026:97514
Red Hat Enterprise Linux 9sgx-commonNot affected
Red Hat Enterprise Linux 9sgx-libsNot affected
Red Hat Enterprise Linux 9sgx-mpaNot affected
Red Hat Enterprise Linux 9sgx-pccsNot affected
Red Hat Enterprise Linux 9sgx-pccs-adminNot affected
Red Hat Enterprise Linux 9sgx-pckid-toolNot affected
Red Hat Enterprise Linux 9subscription-manager-cockpitFixed0:17-1.el9RHSA-2026:97514
Red Hat Enterprise Linux 9tdx-qgsNot affected
Red Hat Enterprise Linux 9thunderbirdNot affected
Red Hat Enterprise Linux 8cockpitWill not fix
Will not fix
Red Hat Enterprise Linux 8cockpit-bridgeWill not fix
Will not fix
Red Hat Enterprise Linux 8cockpit-dashboardWill not fix
Will not fix
Red Hat Enterprise Linux 8cockpit-docWill not fix
Will not fix
Red Hat Enterprise Linux 8cockpit-machinesWill not fix
Will not fix
Red Hat Enterprise Linux 8cockpit-packagekitWill not fix
Will not fix
Red Hat Enterprise Linux 8cockpit-pcpWill not fix
Will not fix
Red Hat Enterprise Linux 8cockpit-podmanWill not fix
Will not fix
Red Hat Enterprise Linux 8cockpit-storagedWill not fix
Will not fix
Red Hat Enterprise Linux 8cockpit-systemWill not fix
Will not fix
Red Hat Enterprise Linux 8cockpit-wsWill not fix
Will not fix
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8grafana-azure-monitorNot affected
Red Hat Enterprise Linux 8grafana-cloudwatchNot affected
Red Hat Enterprise Linux 8grafana-elasticsearchNot affected
Red Hat Enterprise Linux 8grafana-graphiteNot affected
Red Hat Enterprise Linux 8grafana-influxdbNot affected
Red Hat Enterprise Linux 8grafana-lokiNot affected
Red Hat Enterprise Linux 8grafana-mssqlNot affected
Red Hat Enterprise Linux 8grafana-mysqlNot affected
Red Hat Enterprise Linux 8grafana-opentsdbNot affected
Red Hat Enterprise Linux 8grafana-pcpNot affected
Red Hat Enterprise Linux 8grafana-postgresNot affected
Red Hat Enterprise Linux 8grafana-prometheusNot affected
Red Hat Enterprise Linux 8grafana-selinuxNot affected
Red Hat Enterprise Linux 8grafana-stackdriverNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 8pcsFix pending
Affected
Red Hat Enterprise Linux 8pcs-snmpFix pending
Affected
Red Hat Enterprise Linux 8qt5-qtbaseNot affected
Red Hat Enterprise Linux 8qt5-qtbase-commonNot affected
Red Hat Enterprise Linux 8qt5-qtbase-develNot affected
Red Hat Enterprise Linux 8qt5-qtbase-examplesNot affected
Red Hat Enterprise Linux 8qt5-qtbase-guiNot affected
Red Hat Enterprise Linux 8qt5-qtbase-mysqlNot affected
Red Hat Enterprise Linux 8qt5-qtbase-odbcNot affected
Red Hat Enterprise Linux 8qt5-qtbase-postgresqlNot affected
Red Hat Enterprise Linux 8qt5-qtbase-private-develNot affected
Red Hat Enterprise Linux 8qt5-qtbase-staticNot affected
Red Hat Enterprise Linux 8thunderbirdNot affected
Red Hat Enterprise Linux 7firefoxNot affected
AlmaLinux 10cockpit-filesFixed43-1.el10ALSA-2026:97194
AlmaLinux 10cockpit-ha-clusterFixed0.12.1-1.el10_1.3ALSA-2026:10713
AlmaLinux 10cockpit-machinesFixed355-1.el10ALSA-2026:97238
AlmaLinux 10cockpit-podmanFixed129-1.el10ALSA-2026:97193
AlmaLinux 9cockpit-filesFixed43-1.el9ALSA-2026:97538
AlmaLinux 9cockpit-machinesFixed355-1.el9ALSA-2026:97539
AlmaLinux 9cockpit-podmanFixed129-1.el9ALSA-2026:97537
AlmaLinux 9pcsFixed0.11.10-1.el9_7.3ALSA-2026:19167
AlmaLinux 9pcs-snmpFixed0.11.10-1.el9_7.3ALSA-2026:19167
Rocky Linux 10cockpit-filesFixed0:43-1.el10RLSA-2026:97194
Rocky Linux 10cockpit-image-builderFixed0:94.3-1.el10_2RLSA-2026:24331
Rocky Linux 10cockpit-machinesFixed0:355-1.el10RLSA-2026:97238
Rocky Linux 10cockpit-podmanFixed0:129-1.el10RLSA-2026:97193
Rocky Linux 10rhsm-iconsFixed0:17-1.el10.rocky.0.1RLSA-2026:97090
Rocky Linux 10subscription-manager-cockpitFixed0:17-1.el10.rocky.0.1RLSA-2026:97090
Rocky Linux 9cockpit-filesFixed0:43-1.el9RLSA-2026:97538
Rocky Linux 9cockpit-machinesFixed0:355-1.el9RLSA-2026:97539
Rocky Linux 9cockpit-podmanFixed0:129-1.el9RLSA-2026:97537
Rocky Linux 9pcsFixed0:0.11.11-2.el9_8.1RLSA-2026:10710
Rocky Linux 9rhsm-iconsFixed0:17-1.el9.rocky.0.1RLSA-2026:97514
Rocky Linux 9subscription-manager-cockpitFixed0:17-1.el9.rocky.0.1RLSA-2026:97514
npm librarylodashFixed4.18.0GHSA-r5fr-rjxr-66jc
npm librarylodash-amdFixed4.18.0GHSA-r5fr-rjxr-66jc
npm librarylodash-esFixed4.18.0GHSA-r5fr-rjxr-66jc
npm librarylodash.templateFixed4.18.0GHSA-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.

References

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.