原始 OSV JSON
{
"id": "GHSA-w3w8-37jv-2c58",
"aliases": [
"CVE-2015-8862"
],
"details": "Versions of `mustache` prior to 2.2.1 are affected by a cross-site scripting vulnerability when attributes in mustache templates are not quoted.\n\n\n\n### Example\nTemplate:\n```<a href={{foo}}/>```\n\nInput:\n```{ 'foo' : 'test.com onload=alert(1)'}```\n\nRendered result:\n```<a href=test.com onload=alert(1)/>```\n\n\n## Recommendation\n\nUpdate to version 2.2.1 or later.\nAlternatively, ensure that all attributes in hmustache templates are encapsulated with quotes.",
"summary": "Cross-Site Scripting in mustache",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.2.1"
}
]
}
],
"package": {
"name": "mustache",
"ecosystem": "npm"
}
}
],
"modified": "2021-09-20T22:34:08Z",
"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": "2017-10-24T18:33:36Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2015-8862",
"type": "ADVISORY"
},
{
"url": "https://github.com/janl/mustache.js/commit/378bcca8a5cfe4058f294a3dbb78e8755e8e0da5",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-w3w8-37jv-2c58",
"type": "ADVISORY"
},
{
"url": "https://github.com/janl/mustache.js",
"type": "PACKAGE"
},
{
"url": "https://www.npmjs.com/advisories/62",
"type": "WEB"
},
{
"url": "https://www.tenable.com/security/tns-2016-18",
"type": "WEB"
},
{
"url": "http://www.openwall.com/lists/oss-security/2016/04/20/11",
"type": "WEB"
},
{
"url": "http://www.securityfocus.com/bid/96436",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-06-16T21:59:24Z"
}
}