Cross-site Scripting (XSS) Affecting mustache package, versions [,0.3.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-MUSTACHE-60189
  • published6 Nov 2015
  • disclosed6 Nov 2015

Introduced: 6 Nov 2015

CVE NOT AVAILABLE CWE-79  (opens in a new tab)

Overview

An escaping problem within to_html function can lead to a XSS vulnerability.

Example:

document.write(Mustache.to_html('<input value="{{val}}" />', {val:'maybe" onclick="alert(\'xss\');" nothing="'}));

Details

<>

CVSS Base Scores

version 3.1