GHSA-fmr4-7g9q-7hc7: Handlebars Moderate Severity Vulnerability That Affects Vulnerability
MODERATEGHSA-fmr4-7g9q-7hc7 is a MODERATE moderate severity vulnerability that affects vulnerability (General Security Weakness) affecting Handlebars libraries in the npm ecosystem. The issue involves moderate severity vulnerability that affects handlebars. Remediation is available by upgrading affected packages to version 4.0.0.
GHSA-fmr4-7g9q-7hc7 at a Glance
How to Fix GHSA-fmr4-7g9q-7hc7
To remediate this vulnerability, upgrade all affected Handlebars 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 handlebars@4.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls handlebars
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-fmr4-7g9q-7hc7, inspect your project dependencies using npm:
npm ls handlebars
Analyze the terminal output to locate any version of Handlebars in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0), your application is affected.
Note: The npm ls handlebars 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 Handlebars, 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-fmr4-7g9q-7hc7 Affected Handlebars Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
handlebars
|
npm |
< 4.0.0
|
4.0.0
|
References
Frequently Asked Questions
What is GHSA-fmr4-7g9q-7hc7?
Which Handlebars versions are affected?
What version fixes GHSA-fmr4-7g9q-7hc7?
Is handlebars affected?
What CWE is associated with GHSA-fmr4-7g9q-7hc7?
How can I check npm dependencies for GHSA-fmr4-7g9q-7hc7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fmr4-7g9q-7hc7",
"modified" : "2020-06-17T16:30:43Z",
"published" : "2017-10-24T18:33:36Z",
"withdrawn" : "2020-06-17T16:30:43Z",
"aliases" : [ ],
"summary" : "Moderate severity vulnerability that affects handlebars",
"details" : "**Withdrawn:** Duplicate of GHSA-9prh-257w-9277",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "handlebars"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-8861"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-fmr4-7g9q-7hc7"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-17T16:30:43Z",
"nvd_published_at" : null
}
}