Skip to main content
CVE Radar
HIGHpublic exploit

CVE-2026-4800

CVE-2026-4800 — lodash 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.

Published Updated Sources: cvelistV5, openjs

Triage

Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.

Exploitation

Public exploit

exploit code published, no use observed

EPSS

3%

chance of exploitation in 30 days

Affects

Lodash

108 products listed

CVSS base

8.1

HIGH

CISA SSVC assessment

Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.

CISA

Exploitation

None

none · proof-of-concept · active

Automatable

No

can an attacker script all four kill-chain steps

Technical impact

Total

partial · total control of the vulnerable component

Affected scope

The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.

Vendors (2)

Products (108)

lodashlodash eslodash amdlodash templatecryostat 4 on rhel 9red hat ansible automation platform 2 5 for rhel 8red hat ansible automation platform 2 5 for rhel 9red hat ansible automation platform 2 6 for rhel 9red hat data grid 8 6 1red hat enterprise linux 10red hat enterprise linux 10 0 extended update supportred hat enterprise linux 8 4 advanced mission critical update supportred hat enterprise linux 8 4 extended update support long life add onred hat enterprise linux 8 6 telecommunications update servicered hat enterprise linux 8 6 update services for sap solutionsred hat enterprise linux 8 8 telecommunications update servicered hat enterprise linux 8 8 update services for sap solutionsred hat enterprise linux 9red hat enterprise linux 9 0 update services for sap solutionsred hat enterprise linux 9 2 update services for sap solutionsred hat enterprise linux 9 4 extended update supportred hat enterprise linux 9 6 extended update supportstreams for apache kafka 2 9 4streams for apache kafka 3 2 0cluster observability operator 1 5 0migration toolkit for virtualization 2 1migration toolkit for virtualization 2 9network observability netobserv 1 11 0red hat ansible automation platform 2 5red hat ansible automation platform 2 6red hat developer hub 1 8red hat developer hub 1 9red hat edge manager 1 0red hat edge manager 1 1red hat migration toolkit 1 8red hat openshift ai 2 25red hat openshift ai 3 3red hat openshift container platform 4 12red hat openshift container platform 4 13red hat openshift container platform 4 14red hat openshift container platform 4 15red hat openshift container platform 4 16red hat openshift container platform 4 17red hat openshift container platform 4 18red hat openshift container platform 4 19red hat openshift container platform 4 20red hat openshift container platform 4 21red hat openshift container platform 4 22red hat openshift data foundation 4 16red hat openshift data foundation 4 17red hat openshift data foundation 4 18red hat openshift data foundation 4 19red hat openshift data foundation 4 20red hat openshift dev spaces 3 27red hat openshift distributed tracing 3 9 3red hat openshift gitops 1 18red hat openshift gitops 1 19red hat openshift service mesh 2 6red hat openshift service mesh 3 0red hat openshift service mesh 3 1red hat openshift service mesh 3 2red hat openshift service mesh 3 3red hat satellite 6 18red hat trusted artifact signer 1 3confidential compute attestationcryostat 4gatekeeper 3logging subsystem for red hat openshiftmigration toolkit for applications 8multicluster engine for kubernetesnode healthcheck operatoropenshift lightspeedopenshift pipelinesopenshift service mesh 3red hat 3scale api management platform 2red hat advanced cluster management for kubernetes 2red hat advanced cluster security 4red hat ansible automation platform 2red hat build of apache camel hawtio 4red hat build of apicurio registry 2red hat build of apicurio registry 3red hat build of keycloakred hat build of podman desktopred hat connectivity link 1red hat developer hubred hat directory server 11red hat directory server 12red hat directory server 13red hat discovery 2red hat enterprise linux 7red hat enterprise linux 8red hat enterprise linux ai rhel ai 3red hat fuse 7red hat jboss enterprise application platform 7red hat jboss enterprise application platform 8red hat jboss enterprise application platform expansion packred hat openshift ai rhoaired hat openshift container platform 4red hat openshift dev spacesred hat openshift gitopsred hat openshift virtualization 4red hat process automation 7red hat quay 3red hat satellite 6red hat single sign on 7red hat trusted artifact signerred hat trusted profile analyzerself service automation portal 2

Every base score collected

Sources score independently and disagree; each row says who scored it and under which version.

Every CVSS base score collected, by source and version
ScoreVersionSeverityExpl.ImpactSource
8.1CVSS 3.1HIGHn/an/acvelistV5

Weakness & attack patterns

  • CWE-94

Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.

  • T1027.006Obfuscated Files or Information: HTML Smuggling
  • T1027.009Obfuscated Files or Information: Embedded Payloads
  • T1564.009Hide Artifacts: Resource Forking

Public exploit

Capability, not use: code existing is a different claim from anyone running it.

Indexed by

poc in github

References

25 on the record

Related CVEs

Same product first, then the same weakness or threat actor.

Elsewhere on this site

  • Lodashevery CVE for this vendor
  • Red Hatevery CVE for this vendor
  • CWE-94other pages naming this weakness

Not in any source we poll

Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.

  • No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
  • No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
  • No exploit packet captures, log samples, or incident case IDs supplied.