原始 OSV JSON{
"id": "GHSA-f7ph-p5rv-phw2",
"aliases": [
"CVE-2016-10547"
],
"details": "Affected versions of `nunjucks` do not properly escape specially structured user input in template vars when in auto-escape mode, resulting in a cross-site scripting vulnerability.\n\n## Proof of Concept\n\nBy using an array for the keys in a template var, escaping is bypassed.\n```javascript\nname[]=<script>alert(1)</script>\n```\n\nA full PoC is available in the references section.\n\n\n## Recommendation\n\nUpdate to version 2.4.3 or later.",
"summary": "Cross-Site Scripting in nunjucks",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.3"
}
]
}
],
"package": {
"name": "nunjucks",
"ecosystem": "npm"
}
}
],
"modified": "2020-08-31T18:12:27Z",
"severity": [],
"published": "2018-11-06T23:13:37Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-10547",
"type": "ADVISORY"
},
{
"url": "https://github.com/mozilla/nunjucks/issues/835",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-f7ph-p5rv-phw2",
"type": "ADVISORY"
},
{
"url": "https://github.com/matt-/nunjucks_test",
"type": "WEB"
},
{
"url": "https://www.npmjs.com/advisories/147",
"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:04Z"
}
}