org.webjars.npm:copy-props@2.0.4 vulnerabilities

  • latest version

    2.0.5

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    3 years ago

  • licenses detected

  • package manager

Direct Vulnerabilities

Known vulnerabilities in the org.webjars.npm:copy-props package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Prototype Pollution

org.webjars.npm:copy-props is a Copy properties deeply between two objects.

Affected versions of this package are vulnerable to Prototype Pollution via the main functionality.

POC

const copyProps = require('copy-props');

var malicious_payload = '{"__proto__":{"polluted":"polluted"}}';
console.log("Before : " + {}.polluted);

copyProps(JSON.parse(malicious_payload), {});
console.log("After : " + {}.polluted);

How to fix Prototype Pollution?

Upgrade org.webjars.npm:copy-props to version 2.0.5 or higher.

[,2.0.5)