prototyped.js@0.21.0 vulnerabilities

Common typescript ready prototypes available in both CommonJS and ECMAScript

Direct Vulnerabilities

Known vulnerabilities in the prototyped.js 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

prototyped.js is a Common typescript ready prototypes available in both es5 and es6

Affected versions of this package are vulnerable to Prototype Pollution.

PoC

const set = require("prototyped.js/dist/object/set").default;
console.log("Prototype before set", ({}).isAdmin);
set({}, "__proto__.isAdmin", true);
console.log("Prototype after set", ({}).isAdmin);

How to fix Prototype Pollution?

Upgrade prototyped.js to version 2.0.1 or higher.

<2.0.1