{"id":"GHSA-9prh-257w-9277","revision":"a79f43a5ea064e6c80c95ca8766bd224","records":[{"revision":"a79f43a5ea064e6c80c95ca8766bd224","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-9prh-257w-9277","aliases":["CVE-2015-8861"],"title":"Cross-Site Scripting in handlebars","description":"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.","state":0,"publishedAt":"2018-10-23T17:20:12+00:00","modifiedAt":"2026-09-10T03:47:03.2420957+00:00","affected":[{"ecosystem":"npm","name":"handlebars","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.0.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2015-8861","https://github.com/wycats/handlebars.js/pull/1083","https://blog.srcclr.com/handlebars_vulnerability_research_findings","https://github.com/advisories/GHSA-9prh-257w-9277","https://github.com/wycats/handlebars.js","https://www.npmjs.com/advisories/61","https://www.sourceclear.com/blog/handlebars_vulnerability_research_findings","https://www.tenable.com/security/tns-2016-18","http://www.openwall.com/lists/oss-security/2016/04/20/11","http://www.securityfocus.com/bid/96434"],"sourceUrl":"https://github.com/advisories/GHSA-9prh-257w-9277","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9prh-257w-9277","identifiers":["GHSA-9prh-257w-9277","CVE-2015-8861"]},"retained":false,"historicalAffected":[]}],"coverage":[]}