NetSight
hoch8.1

CVE-2026-4800

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 …

Auswirkung

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.

Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
npmlodash>= 4.0.0, <= 4.17.234.18.0
npmlodash-es>= 4.0.0, <= 4.17.234.18.0
npmlodash-amd>= 4.0.0, <= 4.17.234.18.0
npmlodash.template>= 4.0.0, < 4.18.04.18.0

Betroffene Produkte · Lodash

ProduktBetroffene Versionen
Lodash
ab 4.0.0 vor 4.18.0
Lodash-amd
ab 4.0.0 vor 4.18.0
Lodash-es
ab 4.0.0 vor 4.18.0
Lodash.template
ab 4.0.0 vor 4.18.0

Schwachstellenklasse

Referenzen