CVE-2015-8861
MEDIUM6.1EPSS 0.32%Cross-Site Scripting in handlebars
發布日:2018/10/23修改日:2026/2/4
描述
Versions of `handlebars` prior to 4.0.0 are affected by a cross-site scripting vulnerability when attributes in handlebar templates are not quoted. ## Proof of Concept Template: ```<a href={{foo}}/>``` Input: ```{ 'foo' : 'test.com onload=alert(1)'}``` Rendered result: ```<a href=test.com onload=alert(1)/>``` ## Recommendation Update to version 4.0.0 or later. Alternatively, ensure that all attributes in handlebars templates are encapsulated with quotes.
受影響套件(2)
- Debian/mustache.jsfrom 0
- npm/handlebarsfrom 0, < 4.0.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
參考連結(11)
- ADVISORYhttps://github.com/advisories/GHSA-9prh-257w-9277
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2015-8861
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2015-8861
- PATCHhttps://github.com/wycats/handlebars.js
- WEBhttps://blog.srcclr.com/handlebars_vulnerability_research_findings
- WEBhttps://github.com/wycats/handlebars.js/pull/1083
- WEBhttps://www.npmjs.com/advisories/61
- WEBhttps://www.sourceclear.com/blog/handlebars_vulnerability_research_findings
- WEBhttps://www.tenable.com/security/tns-2016-18
- WEBhttp://www.openwall.com/lists/oss-security/2016/04/20/11
- WEBhttp://www.securityfocus.com/bid/96434