Vulnerabilities in pkg:npm/memjs
PACKAGECVE-2018-3767 is a CRITICAL (CVSS 9.1) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Memjs libraries in the npm ecosystem. The issue involves denial of service in memjs. Remediation is available in the latest vendor maintenance releases.
pkg:npm/memjs
Vulnerability advisories affecting package pkg:npm/memjs. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-cx8m-8xmx-q8v3 | CVE-2018-3767 | CRITICAL | Denial of Service in memjs |
CVE-2018-3767 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H).
How to Fix CVE-2018-3767
To remediate this vulnerability, upgrade all affected Memjs 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 memjs@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls memjs
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2018-3767, inspect your project dependencies using npm:
npm ls memjs
Analyze the terminal output to locate any version of Memjs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls memjs 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 Memjs, 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
CVE-2018-3767 Affected Memjs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
memjs
|
npm |
≤ 1.2.0
|
|
References
Frequently Asked Questions
What is CVE-2018-3767?
Which Memjs versions are affected?
What version fixes CVE-2018-3767?
Is memjs affected?
What is the CVSS score of CVE-2018-3767?
What CWE is associated with CVE-2018-3767?
How can I check npm dependencies for CVE-2018-3767?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cx8m-8xmx-q8v3",
"modified" : "2023-09-12T18:51:51Z",
"published" : "2018-10-10T17:25:12Z",
"aliases" : [ "CVE-2018-3767" ],
"summary" : "Denial of Service in memjs",
"details" : "Versions of `memjs` prior to 1.2.2 are vulnerable to Denial of Service (DoS). The package fails to sanitize the `value` option passed to the Buffer constructor, which may allow attackers to pass large values exhausting system resources.\n\n\n## Recommendation\n\nUpgrade to version 1.2.2 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "memjs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-3767"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/319809"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-cx8m-8xmx-q8v3"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/970"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:33:11Z",
"nvd_published_at" : null
}
}