Skip to content

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

CriticalCVSS 9.8 EPSS 2.9%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

442 packages: 61 fixed, 9 partially fixed, 366 with no fix yet.

PackageAffectedFixed inStatus
redhat advanced cluster security All versions No fix listed No fix yet
redhat ansible portal All versions No fix listed No fix yet
redhat apache camel hawtio All versions No fix listed No fix yet
redhat apicurio registry All versions No fix listed No fix yet
redhat build keycloak All versions No fix listed No fix yet
redhat confidential compute attestation All versions No fix listed No fix yet
redhat connectivity link All versions No fix listed No fix yet
redhat container native virtualization = 4; All versions No fix listed No fix yet
redhat discovery All versions No fix listed No fix yet
redhat enterprise linux ai All versions No fix listed No fix yet
redhat jboss enterprise application platform = 8; All versions No fix listed No fix yet
redhat jboss enterprise bpms platform All versions No fix listed No fix yet
redhat jboss fuse All versions No fix listed No fix yet
redhat jbosseapxp All versions No fix listed No fix yet
redhat logging All versions No fix listed No fix yet
redhat migration toolkit applications All versions No fix listed No fix yet
redhat multicluster engine All versions No fix listed No fix yet
redhat openshift lightspeed All versions No fix listed No fix yet
redhat openshift pipelines All versions No fix listed No fix yet
redhat podman desktop All versions No fix listed No fix yet
redhat red hat 3scale amp All versions No fix listed No fix yet
redhat red hat single sign on All versions No fix listed No fix yet
redhat service registry All versions No fix listed No fix yet
redhat trusted profile analyzer = 3; All versions No fix listed No fix yet
redhat workload availability nhc = 0; All versions No fix listed No fix yet
redhat/3scale-amp2/system-rhel7(Red Hat 3scale 2.13) All versions No fix listed No fix yet
redhat/3scale-amp2/system-rhel8(Red Hat 3scale 2.13) All versions No fix listed No fix yet
redhat/3scale-amp2/system-rhel9(Red Hat 3scale 2.13) All versions No fix listed No fix yet
redhat/3scale-amp20/system(Red Hat 3scale 2.13) All versions No fix listed No fix yet
redhat/3scale-amp21/system(Red Hat 3scale 2.13) All versions No fix listed No fix yet

… and 412 more packages.

Affected products

ProductAffected versionsFixed in
npm lodash >= 4.0.0, < 4.18.1 4.18.1
npm lodash-es >= 4.0.0, < 4.18.1 4.18.1
npm lodash-amd >= 4.0.0, < 4.18.1 4.18.1
npm lodash.template >= 4.0.0, < 4.18.1 4.18.1
redhat cryostat < 4.2.0-9 4.2.0-9
redhat ansible automation platform < 0:2.5.20260715-1.el8ap 0:2.5.20260715-1.el8ap
redhat ansible automation platform < 0:2.5.20260715-1.el9ap 0:2.5.20260715-1.el9ap
redhat ansible automation platform < 0:2.6.9-1.el9ap 0:2.6.9-1.el9ap
redhat jboss data grid = 8 No fix listed
redhat enterprise linux < 0:0.12.1-1.el10_1.3 0:0.12.1-1.el10_1.3
redhat enterprise linux < 0:0.12.2-3.el10_2.1 0:0.12.2-3.el10_2.1
redhat enterprise linux < 0:94.3-1.el10_2 0:94.3-1.el10_2
redhat enterprise linux eus < 0:0.12.0-3.el10_0.5 0:0.12.0-3.el10_0.5
redhat rhel aus < 0:0.10.8-1.el8_4.11 0:0.10.8-1.el8_4.11
redhat rhel eus long life < 0:0.10.8-1.el8_4.11 0:0.10.8-1.el8_4.11
redhat rhel tus < 0:0.10.12-6.el8_6.13 0:0.10.12-6.el8_6.13
redhat rhel e4s < 0:0.10.12-6.el8_6.13 0:0.10.12-6.el8_6.13
redhat rhel tus < 0:0.10.15-4.el8_8.11 0:0.10.15-4.el8_8.11
redhat rhel e4s < 0:0.10.15-4.el8_8.11 0:0.10.15-4.el8_8.11
redhat enterprise linux < 0:356.1-1.el9_8 0:356.1-1.el9_8
redhat enterprise linux < 0:0.11.10-1.el9_7.3 0:0.11.10-1.el9_7.3
redhat enterprise linux < 0:0.11.11-2.el9_8.1 0:0.11.11-2.el9_8.1
redhat rhel e4s < 0:0.11.1-10.el9_0.11 0:0.11.1-10.el9_0.11
redhat rhel e4s < 0:0.11.4-7.el9_2.8 0:0.11.4-7.el9_2.8
redhat rhel eus < 0:0.11.7-2.el9_4.7 0:0.11.7-2.el9_4.7
Show 175 more
ProductAffected versionsFixed in
redhat rhel eus < 0:0.11.9-2.el9_6.4 0:0.11.9-2.el9_6.4
redhat amq streams = 2.9 No fix listed
redhat amq streams = 3.2 No fix listed
redhat cluster observability operator < 1782839279 1782839279
redhat cluster observability operator < 1782840539 1782840539
redhat cluster observability operator < 1782839996 1782839996
redhat migration toolkit virtualization < 1779139872 1779139872
redhat migration toolkit virtualization < 1778927462 1778927462
redhat network observ optr < 1778508956 1778508956
redhat network observ optr < 1778510461 1778510461
redhat ansible automation platform < 1777403872 1777403872
redhat ansible automation platform < 1777387242 1777387242
redhat rhdh < 1776784286 1776784286
redhat rhdh < 1777903262 1777903262
redhat edge manager < 1783502765 1783502765
redhat edge manager < 1783502438 1783502438
redhat edge manager < 1784194938 1784194938
redhat edge manager < 1784194574 1784194574
redhat edge manager < 1784126822 1784126822
redhat edge manager < 1784127736 1784127736
redhat rhmt < 1783690532 1783690532
redhat openshift ai < 1780467029 1780467029
redhat openshift ai < 1780467147 1780467147
redhat openshift ai < 1779189627 1779189627
redhat openshift ai < 1778473763 1778473763
redhat openshift ai < 1778666987 1778666987
redhat openshift < 1786753387 1786753387
redhat openshift < 1786477760 1786477760
redhat openshift < 1787056403 1787056403
redhat openshift < 1787028559 1787028559
redhat openshift < 1782934080 1782934080
redhat openshift < 1787054159 1787054159
redhat openshift < 1778517109 1778517109
redhat openshift < 1782269794 1782269794
redhat openshift < 1787631382 1787631382
redhat openshift < 1778256287 1778256287
redhat openshift < 1779874967 1779874967
redhat openshift < 1785278569 1785278569
redhat openshift < 1779256322 1779256322
redhat openshift < 1779249920 1779249920
redhat openshift < 1784634877 1784634877
redhat openshift < 1778644858 1778644858
redhat openshift < 1778645008 1778645008
redhat openshift < 1784148070 1784148070
redhat openshift < 1783502338 1783502338
redhat openshift < 1782224390 1782224390
redhat openshift data foundation < 1778076673 1778076673
redhat openshift data foundation < 1778076741 1778076741
redhat openshift data foundation < 1778076916 1778076916
redhat openshift data foundation < 1778077421 1778077421
redhat openshift data foundation < 1778076861 1778076861
redhat openshift data foundation < 1778077066 1778077066
redhat openshift data foundation < 1778077002 1778077002
redhat openshift data foundation < 1778077164 1778077164
redhat openshift data foundation < 1778077913 1778077913
redhat openshift data foundation < 1778077379 1778077379
redhat openshift data foundation < 1778077455 1778077455
redhat openshift data foundation < 1778077447 1778077447
redhat openshift data foundation < 1778078096 1778078096
redhat openshift data foundation < 1778077527 1778077527
redhat openshift data foundation < 1778077651 1778077651
redhat openshift data foundation < 1778077920 1778077920
redhat openshift data foundation < 1778077737 1778077737
redhat openshift data foundation < 1778077839 1778077839
redhat openshift data foundation < 1778049594 1778049594
redhat openshift data foundation < 1778049298 1778049298
redhat openshift data foundation < 1778049745 1778049745
redhat openshift data foundation < 1778049753 1778049753
redhat openshift data foundation < 1778050558 1778050558
redhat openshift data foundation < 1778049818 1778049818
redhat openshift data foundation < 1778049878 1778049878
redhat openshift data foundation < 1778049920 1778049920
redhat openshift data foundation < 1778049945 1778049945
redhat openshift data foundation < 1778060364 1778060364
redhat openshift data foundation < 1778050037 1778050037
redhat openshift data foundation < 1778050035 1778050035
redhat openshift data foundation < 1778050048 1778050048
redhat openshift data foundation < 1778050508 1778050508
redhat openshift data foundation < 1778050119 1778050119
redhat openshift data foundation < 1778050290 1778050290
redhat openshift data foundation < 1778059723 1778059723
redhat openshift data foundation < 1778050352 1778050352
redhat openshift data foundation < 1778050482 1778050482
redhat openshift data foundation < 1778045210 1778045210
redhat openshift data foundation < 1783676191 1783676191
redhat openshift data foundation < 1778044961 1778044961
redhat openshift data foundation < 1783929816 1783929816
redhat openshift data foundation < 1778045359 1778045359
redhat openshift data foundation < 1784094353 1784094353
redhat openshift data foundation < 1778045374 1778045374
redhat openshift data foundation < 1784093953 1784093953
redhat openshift data foundation < 1778045891 1778045891
redhat openshift data foundation < 1784094943 1784094943
redhat openshift data foundation < 1778045472 1778045472
redhat openshift data foundation < 1783676585 1783676585
redhat openshift data foundation < 1778045534 1778045534
redhat openshift data foundation < 1783676649 1783676649
redhat openshift data foundation < 1778045524 1778045524
redhat openshift data foundation < 1783676675 1783676675
redhat openshift data foundation < 1778045587 1778045587
redhat openshift data foundation < 1784094299 1784094299
redhat openshift data foundation < 1778046067 1778046067
redhat openshift data foundation < 1784094725 1784094725
redhat openshift data foundation < 1778045627 1778045627
redhat openshift data foundation < 1783676820 1783676820
redhat openshift data foundation < 1778045731 1778045731
redhat openshift data foundation < 1783676883 1783676883
redhat openshift data foundation < 1778045700 1778045700
redhat openshift data foundation < 1783676894 1783676894
redhat openshift data foundation < 1778046234 1778046234
redhat openshift data foundation < 1784095175 1784095175
redhat openshift data foundation < 1778045792 1778045792
redhat openshift data foundation < 1783676977 1783676977
redhat openshift data foundation < 1778045858 1778045858
redhat openshift data foundation < 1784093503 1784093503
redhat openshift data foundation < 1778045945 1778045945
redhat openshift data foundation < 1783677297 1783677297
redhat openshift data foundation < 1778045931 1778045931
redhat openshift data foundation < 1783677345 1783677345
redhat openshift data foundation < 1778046079 1778046079
redhat openshift data foundation < 1783677533 1783677533
redhat openshift data foundation < 1776079019 1776079019
redhat openshift data foundation < 1783684360 1783684360
redhat openshift data foundation < 1776706744 1776706744
redhat openshift data foundation < 1783684068 1783684068
redhat openshift data foundation < 1776707205 1776707205
redhat openshift data foundation < 1784054582 1784054582
redhat openshift data foundation < 1776707231 1776707231
redhat openshift data foundation < 1784054606 1784054606
redhat openshift data foundation < 1776707760 1776707760
redhat openshift data foundation < 1784055295 1784055295
redhat openshift data foundation < 1776707301 1776707301
redhat openshift data foundation < 1783684603 1783684603
redhat openshift data foundation < 1776079295 1776079295
redhat openshift data foundation < 1783684668 1783684668
redhat openshift data foundation < 1776707362 1776707362
redhat openshift data foundation < 1783684667 1783684667
redhat openshift data foundation < 1776707418 1776707418
redhat openshift data foundation < 1784054873 1784054873
redhat openshift data foundation < 1776707377 1776707377
redhat openshift data foundation < 1783684707 1783684707
redhat openshift data foundation < 1776707947 1776707947
redhat openshift data foundation < 1784055589 1784055589
redhat openshift data foundation < 1776707456 1776707456
redhat openshift data foundation < 1783684779 1783684779
redhat openshift data foundation < 1776707526 1776707526
redhat openshift data foundation < 1783684831 1783684831
redhat openshift data foundation < 1783684839 1783684839
redhat openshift data foundation < 1776707945 1776707945
redhat openshift data foundation < 1784055533 1784055533
redhat openshift data foundation < 1776707569 1776707569
redhat openshift data foundation < 1784055558 1784055558
redhat openshift data foundation < 1776707724 1776707724
redhat openshift data foundation < 1784056134 1784056134
redhat openshift data foundation < 1776707763 1776707763
redhat openshift data foundation < 1783685128 1783685128
redhat openshift data foundation < 1776707771 1776707771
redhat openshift data foundation < 1783685129 1783685129
redhat openshift data foundation < 1776079774 1776079774
redhat openshift data foundation < 1783685375 1783685375
redhat openshift data foundation < 1775822432 1775822432
redhat openshift data foundation < 1783667125 1783667125
redhat openshift data foundation < 1776403457 1776403457
redhat openshift data foundation < 1783666755 1783666755
redhat openshift data foundation < 1776403991 1776403991
redhat openshift data foundation < 1784054598 1784054598
redhat openshift data foundation < 1776404009 1776404009
redhat openshift data foundation < 1784055387 1784055387
redhat openshift data foundation < 1776404539 1776404539
redhat openshift data foundation < 1784055726 1784055726
redhat openshift data foundation < 1776404060 1776404060
redhat openshift data foundation < 1783667517 1783667517
redhat openshift data foundation < 1775822689 1775822689
redhat openshift data foundation < 1783667577 1783667577
redhat openshift data foundation < 1776404131 1776404131

References