{"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-8862"}], "descriptions": [{"lang": "en", "value": "mustache package before 2.2.1 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_0": {"scope": "CHANGED", "version": "3.0", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.0/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\":\"HIGH\"}"}}}], "affected": [{"vendor": "npm", "product": "mustache", "versions": [{"status": "affected", "version": "0", "lessThan": "2.2.1", "versionType": "semver"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://www.openwall.com/lists/oss-security/2016/04/20/11"}, {"url": "http://www.securityfocus.com/bid/96436"}, {"url": "https://github.com/advisories/GHSA-w3w8-37jv-2c58"}, {"url": "https://github.com/janl/mustache.js"}, {"url": "https://github.com/janl/mustache.js/commit/378bcca8a5cfe4058f294a3dbb78e8755e8e0da5"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2015-8862"}, {"url": "https://www.npmjs.com/advisories/62"}, {"url": "https://www.tenable.com/security/tns-2016-18"}], "descriptions": [{"lang": "en", "value": "Cross-Site Scripting in mustache"}, {"lang": "en", "value": "Versions of `mustache` prior to 2.2.1 are affected by a cross-site scripting vulnerability when attributes in mustache templates are not quoted.\n\n\n\n### Example\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 2.2.1 or later.\nAlternatively, ensure that all attributes in hmustache templates are encapsulated with quotes."}], "providerMetadata": {"orgId": "386269d4-a6c6-4eaa-bf8e-bc0b0d010558", "shortName": "npm", "dateUpdated": "2017-10-24T18:33:36Z", "x_subShortName": "npm"}}, {"affected": [{"vendor": "unknown", "product": "unknown", "defaultStatus": "unknown"}], "references": [{"url": "https://www.cve.org/CVERecord?id=CVE-2015-8862"}], "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_0": {"scope": "CHANGED", "version": "3.0", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.0/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:mustache.js_project:mustache.js:*:*:*:*:*:node.js:*:*"], "vendor": "mustache.js_project", "product": "mustache.js", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "2.2.0"}], "platforms": ["node.js"], "defaultStatus": "unaffected"}], "references": [{"url": "https://nodesecurity.io/advisories/62", "tags": ["exploit", "patch", "vendor-advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2016/04/20/11", "tags": ["mailing-list", "third-party-advisory"]}, {"url": "http://www.securityfocus.com/bid/96436"}, {"url": "https://www.tenable.com/security/tns-2016-18"}], "descriptions": [{"lang": "en", "value": "mustache package before 2.2.1 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": "Paquete mustache en versiones anteriores a 2.2.1 para Node.js permite a atacantes remotos llevar a cabo ataques de secuencias de 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-8862", "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"}