GHSA-3233-rgx3-c2wh: Mustache Moderate Severity Vulnerability That Affects Vulnerability

MODERATE
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-3233-rgx3-c2wh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Mustache
Package Ecosystem npm
Published Date
Last Updated

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.

mustache fixed: 2.2.1
npm install mustache@2.2.1
Verify Direct and Transitive Dependencies

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

Withdrawn, accidental duplicate publish. 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.

GHSA-3233-rgx3-c2wh Affected Mustache Versions

1 component(s)
Fixed Versions:
2.2.1
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?
GHSA-3233-rgx3-c2wh is a security vulnerability in Mustache involving Moderate severity vulnerability that affects mustache under General Security Weakness.
Which Mustache versions are affected?
Affected versions include releases prior to 2.2.1 across affected packages: mustache.
What version fixes GHSA-3233-rgx3-c2wh?
Upgrading to 2.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mustache affected?
Yes, mustache is affected in releases prior to 2.2.1. Upgrade your dependency to 2.2.1 or later.
What CWE is associated with GHSA-3233-rgx3-c2wh?
GHSA-3233-rgx3-c2wh is classified under General Security Weakness.
How can I check npm dependencies for GHSA-3233-rgx3-c2wh?
Run the dependency tree command: 'npm ls mustache'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}