原始 OSV JSON
{
"id": "GHSA-9prh-257w-9277",
"aliases": [
"CVE-2015-8861"
],
"details": "Versions of `handlebars` prior to 4.0.0 are affected by a cross-site scripting vulnerability when attributes in handlebar templates are not quoted.\n\n\n## Proof of Concept\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 4.0.0 or later.\nAlternatively, ensure that all attributes in handlebars templates are encapsulated with quotes.",
"summary": "Cross-Site Scripting in handlebars",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.0.0"
}
]
}
],
"package": {
"name": "handlebars",
"ecosystem": "npm"
}
}
],
"modified": "2021-09-08T20:16:46Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"published": "2018-10-23T17:20:12Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2015-8861",
"type": "ADVISORY"
},
{
"url": "https://github.com/wycats/handlebars.js/pull/1083",
"type": "WEB"
},
{
"url": "https://blog.srcclr.com/handlebars_vulnerability_research_findings",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-9prh-257w-9277",
"type": "ADVISORY"
},
{
"url": "https://github.com/wycats/handlebars.js",
"type": "PACKAGE"
},
{
"url": "https://www.npmjs.com/advisories/61",
"type": "WEB"
},
{
"url": "https://www.sourceclear.com/blog/handlebars_vulnerability_research_findings",
"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/96434",
"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:29:14Z"
}
}