GHSA-6394-6h9h-cfjg: Nwmatcher Denial of Service Vulnerability
MODERATEGHSA-6394-6h9h-cfjg is a MODERATE denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Nwmatcher libraries in the npm ecosystem. The issue involves regular expression denial of service. Remediation is available by upgrading affected packages to version 1.4.4.
GHSA-6394-6h9h-cfjg at a Glance
How to Fix GHSA-6394-6h9h-cfjg
To remediate this vulnerability, upgrade all affected Nwmatcher 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 nwmatcher@1.4.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls nwmatcher
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-6394-6h9h-cfjg, inspect your project dependencies using npm:
npm ls nwmatcher
Analyze the terminal output to locate any version of Nwmatcher in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.4), your application is affected.
Note: The npm ls nwmatcher 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 CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Nwmatcher, 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-6394-6h9h-cfjg Affected Nwmatcher Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
nwmatcher
|
npm |
< 1.4.4
|
1.4.4
|
References
Frequently Asked Questions
What is GHSA-6394-6h9h-cfjg?
Which Nwmatcher versions are affected?
What version fixes GHSA-6394-6h9h-cfjg?
Is nwmatcher affected?
What CWE is associated with GHSA-6394-6h9h-cfjg?
How can I check npm dependencies for GHSA-6394-6h9h-cfjg?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6394-6h9h-cfjg",
"modified" : "2021-02-25T17:23:12Z",
"published" : "2019-06-07T21:12:35Z",
"aliases" : [ ],
"summary" : "Regular Expression Denial of Service",
"details" : "A Regular Expression vulnerability was found in nwmatcher before 1.4.4. The fix replacing multiple repeated instances of the \"\\s*\" pattern.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "nwmatcher"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dperini/nwmatcher/commit/9dcc2b039beeabd18327a5ebaa537625872e16f0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-07T21:11:09Z",
"nvd_published_at" : null
}
}