{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"unimportant\"}"}}}], "affected": [{"vendor": "debian", "product": "mustache.js", "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2015-8861"}], "descriptions": [{"lang": "en", "value": "The handlebars package before 4.0.0 for Node.js allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2017-01-23T21:00:00.000Z", "x_subShortName": "debian"}}, {"metrics": [{"cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "npm", "product": "handlebars", "versions": [{"status": "affected", "version": "0", "lessThan": "4.0.0", "versionType": "semver"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://www.openwall.com/lists/oss-security/2016/04/20/11"}, {"url": "http://www.securityfocus.com/bid/96434"}, {"url": "https://blog.srcclr.com/handlebars_vulnerability_research_findings"}, {"url": "https://github.com/advisories/GHSA-9prh-257w-9277"}, {"url": "https://github.com/wycats/handlebars.js"}, {"url": "https://github.com/wycats/handlebars.js/pull/1083"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2015-8861"}, {"url": "https://www.npmjs.com/advisories/61"}, {"url": "https://www.sourceclear.com/blog/handlebars_vulnerability_research_findings"}, {"url": "https://www.tenable.com/security/tns-2016-18"}], "descriptions": [{"lang": "en", "value": "Cross-Site Scripting in handlebars"}, {"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "386269d4-a6c6-4eaa-bf8e-bc0b0d010558", "shortName": "npm", "dateUpdated": "2018-10-23T17:20:12Z", "x_subShortName": "npm"}}, {"affected": [{"vendor": "unknown", "product": "unknown", "defaultStatus": "unknown"}], "references": [{"url": "https://www.cve.org/CVERecord?id=CVE-2015-8861"}], "descriptions": [{"lang": "en", "value": "not defined"}], "providerMetadata": {"orgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc", "shortName": "canonical", "dateUpdated": "2000-01-01T00:00:00Z", "x_subShortName": "canonical"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 4.3, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "NONE", "confidentialityImpact": "NONE"}}, {"format": "CVSS", "cvssV3_1": {"scope": "CHANGED", "version": "3.1", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}], "affected": [{"cpes": ["cpe:2.3:a:handlebars.js_project:handlebars.js:*:*:*:*:*:node.js:*:*"], "vendor": "handlebars.js_project", "product": "handlebars.js", "versions": [{"status": "affected", "version": "0", "lessThan": "4.0.0", "versionType": "custom"}], "platforms": ["node.js"], "defaultStatus": "unaffected"}], "references": [{"url": "http://www.openwall.com/lists/oss-security/2016/04/20/11", "tags": ["mailing-list", "third-party-advisory"]}, {"url": "https://www.sourceclear.com/blog/handlebars_vulnerability_research_findings/", "tags": ["patch", "third-party-advisory"]}, {"url": "https://www.tenable.com/security/tns-2016-18", "tags": ["third-party-advisory"]}, {"url": "http://www.securityfocus.com/bid/96434", "tags": ["third-party-advisory", "vdb-entry"]}], "descriptions": [{"lang": "en", "value": "The handlebars package before 4.0.0 for Node.js allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted."}, {"lang": "es", "value": "El paquete handlebars en versiones anteriores a 4.0.0 para Node.js permite a atacantes remotos levar a cabo ataque de secuencias de comandos en sitios cruzados (XSS) aprovechando una plantilla con un atributo que no se cita."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-79", "description": "CWE-79"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2017-01-23T21:59:00Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2015-8861", "state": "PUBLISHED", "dateUpdated": "2025-04-20T01:37:25Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2017-01-23T21:59:00Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}