logo

CVE-2015-8862 mustache

Package

Manager: npm
Name: mustache
Vulnerable Version: >=0 <2.2.1

Severity

Level: High

CVSS v3.1: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.0018 pctl0.3986

Details

Cross-Site Scripting in mustache Versions of `mustache` prior to 2.2.1 are affected by a cross-site scripting vulnerability when attributes in mustache templates are not quoted. ### Example Template: ```<a href={{foo}}/>``` Input: ```{ 'foo' : 'test.com onload=alert(1)'}``` Rendered result: ```<a href=test.com onload=alert(1)/>``` ## Recommendation Update to version 2.2.1 or later. Alternatively, ensure that all attributes in hmustache templates are encapsulated with quotes.

Metadata

Created: 2017-10-24T18:33:36Z
Modified: 2021-09-20T22:34:08Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-w3w8-37jv-2c58/GHSA-w3w8-37jv-2c58.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-w3w8-37jv-2c58
Finding: F008
Auto approve: 1