GHSA-wgxm-rg53-h2c6

Suggest an improvement
Source
https://github.com/advisories/GHSA-wgxm-rg53-h2c6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-wgxm-rg53-h2c6/GHSA-wgxm-rg53-h2c6.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wgxm-rg53-h2c6
Aliases
  • CVE-2020-28276
Published
2022-05-24T17:37:25Z
Modified
2024-04-22T23:44:02.442411Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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);
Database specific
{
    "nvd_published_at": "2020-12-29T17:15:00Z",
    "cwe_ids": [
        "CWE-1321"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2024-04-22T23:14:16Z"
}
References

Affected packages

npm / deep-set

Package

Affected ranges

Type
SEMVER
Events
Introduced
1.0.0
Last affected
1.0.1