GitHub Advisoryadvisory · npm

GHSA-h726-x36v-rx45 Prototype Pollution in lodash.merge

HIGH Published 2020-09-03 Modified 2020-08-31 Official page ↗
Ecosystem
npm
Packages
lodash.merge
Severity
High
Weaknesses
CWE-1321
Reviewed
2020-08-31

Affected packages

• npm lodash.merge: < 4.6.2 → fixed in 4.6.2

Description

Versions of `lodash.merge` before 4.6.2 are vulnerable to prototype pollution. The function `merge` may allow a malicious user to modify the prototype of `Object` via `{constructor: {prototype: {...}}}` causing the addition or modification of an existing property that will exist on all objects. Recommendation Update to version 4.6.2 or later.

Related

Weakness · CWE (1)

  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness

References