ghsa-9prh-257w-9277
Vulnerability from github
Published
2018-10-23 17:20
Modified
2021-09-08 20:16
Severity ?
VLAI Severity ?
Summary
Cross-Site Scripting in handlebars
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.
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.
{ "affected": [ { "package": { "ecosystem": "npm", "name": "handlebars" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "4.0.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2015-8861" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2020-06-16T21:29:14Z", "nvd_published_at": null, "severity": "MODERATE" }, "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```\u003ca href={{foo}}/\u003e```\n\nInput:\n```{ \u0027foo\u0027 : \u0027test.com onload=alert(1)\u0027}```\n\nRendered result:\n```\u003ca href=test.com onload=alert(1)/\u003e```\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.", "id": "GHSA-9prh-257w-9277", "modified": "2021-09-08T20:16:46Z", "published": "2018-10-23T17:20:12Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2015-8861" }, { "type": "WEB", "url": "https://github.com/wycats/handlebars.js/pull/1083" }, { "type": "WEB", "url": "https://blog.srcclr.com/handlebars_vulnerability_research_findings" }, { "type": "ADVISORY", "url": "https://github.com/advisories/GHSA-9prh-257w-9277" }, { "type": "PACKAGE", "url": "https://github.com/wycats/handlebars.js" }, { "type": "WEB", "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" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "type": "CVSS_V3" } ], "summary": "Cross-Site Scripting in handlebars" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…