GHSA-3233-rgx3-c2wh: Mustache Moderate Severity Vulnerability That Affects Vulnerability
MODERATEGHSA-3233-rgx3-c2wh is a MODERATE moderate severity vulnerability that affects vulnerability (General Security Weakness) affecting Mustache libraries in the npm ecosystem. The issue involves moderate severity vulnerability that affects mustache. Remediation is available by upgrading affected packages to version 2.2.1.
GHSA-3233-rgx3-c2wh at a Glance
How to Fix GHSA-3233-rgx3-c2wh
To remediate this vulnerability, upgrade all affected Mustache dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install mustache@2.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls mustache
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-3233-rgx3-c2wh, inspect your project dependencies using npm:
npm ls mustache
Analyze the terminal output to locate any version of Mustache in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.1), your application is affected.
Note: The npm ls mustache command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Mustache, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-3233-rgx3-c2wh Affected Mustache Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mustache
|
npm |
< 2.2.1
|
2.2.1
|
References
Frequently Asked Questions
What is GHSA-3233-rgx3-c2wh?
Which Mustache versions are affected?
What version fixes GHSA-3233-rgx3-c2wh?
Is mustache affected?
What CWE is associated with GHSA-3233-rgx3-c2wh?
How can I check npm dependencies for GHSA-3233-rgx3-c2wh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3233-rgx3-c2wh",
"modified" : "2020-06-16T21:59:24Z",
"published" : "2018-10-09T00:38:09Z",
"withdrawn" : "2020-06-16T20:53:33Z",
"aliases" : [ ],
"summary" : "Moderate severity vulnerability that affects mustache",
"details" : "Withdrawn, accidental duplicate publish.\n\nmustache 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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "mustache"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.2.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-8862"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-3233-rgx3-c2wh"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T20:53:33Z",
"nvd_published_at" : null
}
}