Search for vulnerabilities
Vulnerability details: VCID-qjpg-1sgr-kkcf
Vulnerability ID VCID-qjpg-1sgr-kkcf
Aliases CVE-2015-8861
GHSA-9prh-257w-9277
Summary Cross-Site Scripting in handlebars 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.
Status Published
Exploitability None
Weighted Severity None
Risk None
Affected and Fixed Packages Package Details
Weaknesses (3)
System Score Found at
epss 0.00757 https://api.first.org/data/v1/epss?cve=CVE-2015-8861
cvssv3.1 6.1 https://blog.srcclr.com/handlebars_vulnerability_research_findings
generic_textual MODERATE https://blog.srcclr.com/handlebars_vulnerability_research_findings
cvssv3 5.3 https://blog.srcclr.com/handlebars_vulnerability_research_findings/
cvssv3.1 6.1 https://github.com/advisories/GHSA-9prh-257w-9277
cvssv3.1_qr MODERATE https://github.com/advisories/GHSA-9prh-257w-9277
generic_textual MODERATE https://github.com/advisories/GHSA-9prh-257w-9277
cvssv3 5.3 https://github.com/nodejs/security-wg/blob/main/vuln/npm/61.json
cvssv3.1 6.1 https://github.com/wycats/handlebars.js
generic_textual MODERATE https://github.com/wycats/handlebars.js
cvssv3 5.3 https://github.com/wycats/handlebars.js/pull/1083
cvssv3.1 6.1 https://github.com/wycats/handlebars.js/pull/1083
generic_textual MODERATE https://github.com/wycats/handlebars.js/pull/1083
cvssv3.1 6.1 https://nvd.nist.gov/vuln/detail/CVE-2015-8861
generic_textual MODERATE https://nvd.nist.gov/vuln/detail/CVE-2015-8861
cvssv3.1 6.1 https://www.npmjs.com/advisories/61
generic_textual MODERATE https://www.npmjs.com/advisories/61
cvssv3.1 6.1 https://www.sourceclear.com/blog/handlebars_vulnerability_research_findings
generic_textual MODERATE https://www.sourceclear.com/blog/handlebars_vulnerability_research_findings
cvssv3.1 6.1 https://www.tenable.com/security/tns-2016-18
generic_textual MODERATE https://www.tenable.com/security/tns-2016-18
cvssv3.1 6.1 http://www.openwall.com/lists/oss-security/2016/04/20/11
generic_textual MODERATE http://www.openwall.com/lists/oss-security/2016/04/20/11
cvssv3.1 6.1 http://www.securityfocus.com/bid/96434
generic_textual MODERATE http://www.securityfocus.com/bid/96434
No exploits are available.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://blog.srcclr.com/handlebars_vulnerability_research_findings
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://github.com/advisories/GHSA-9prh-257w-9277
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://github.com/wycats/handlebars.js
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://github.com/wycats/handlebars.js/pull/1083
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2015-8861
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://www.npmjs.com/advisories/61
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://www.sourceclear.com/blog/handlebars_vulnerability_research_findings
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at https://www.tenable.com/security/tns-2016-18
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at http://www.openwall.com/lists/oss-security/2016/04/20/11
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Found at http://www.securityfocus.com/bid/96434
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Exploit Prediction Scoring System (EPSS)
Percentile 0.72249
EPSS Score 0.00757
Published At June 30, 2025, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2025-07-01T12:20:52.891694+00:00 GithubOSV Importer Import https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/10/GHSA-9prh-257w-9277/GHSA-9prh-257w-9277.json 36.1.3