Home / The Node.js Project / Node.js / CVE-2018-7166
CVE-2018-7166: is it exploited, and which versions of The Node.js Project Node.js are affected and fixed?
CVE-2018-7166 is a sensitive Information in Resource Not Removed Before Reuse vulnerability in The Node.js Project Node.js. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 06:38 UTC). Affected: Node.js All versions of Node.js 10 prior to 10.9.0 (CVE record by nodejs). Fixed in 10.9.0 (NVD). Severity: High (7.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 06:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:29 UTC.
What is CVE-2018-7166?
In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer.alloc()` to return uninitialized memory. This method is intended to be safe and only return initialized, or cleared, memory. The third argument specifying `encoding` can be passed as a number, this is misinterpreted by `Buffer's` internal "fill" method as the `start` to a fill operation. This flaw may be abused where `Buffer.alloc()` arguments are derived from user input to return uncleared memory blocks that may contain sensitive information.
From the CVE record by nodejs, last updated October 8, 2026, 21:14 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| The Node.js Project | Node.js | All versions of Node.js 10 prior to 10.9.0 |
As the CVE record by nodejs states it, last updated October 8, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| nodejs | node.js | from 10.0.0 before 10.9.0 | application |
NVD analysis (status Modified), last modified October 8, 2026, 22:16 UTC.
How severe is CVE-2018-7166?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-7166 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, October 8, 2026)
- EPSS
- 3.29% probability of exploitation activity in the next 30 days, percentile 88.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-226 Sensitive Information in Resource Not Removed Before Reuse
- CWE-908 Use of Uninitialized Resource
Where are the vendor advisories and references?
- RHSA-2018:2553 vendor-advisory, x_refsource_REDHAT
- https://nodejs.org/en/blog/vulnerability/august-2018-security-releases/ x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- February 15, 2018
- Published
- August 21, 2018, 13:00 UTC
- CVE record updated
- October 8, 2026, 21:14 UTC by nodejs
- NVD
- Modified, last modified October 8, 2026, 22:16 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:29 UTC; KEV December 3, 2026, 06:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Node.js?
- Nov 28, 2018CVE-2018-12123 The Node.js Project Node.js: misinterpretation of Input
- Nov 28, 2018CVE-2018-12122 The Node.js Project Node.js: denial of service (uncontrolled resource consumption)
- Nov 28, 2018CVE-2018-12121 The Node.js Project Node.js: denial of service (uncontrolled resource consumption)
- Nov 28, 2018CVE-2018-12120 The Node.js Project Node.js: unprotected Primary Channel
- Nov 28, 2018CVE-2018-12116 The Node.js Project Node.js: misinterpretation of Input
- Aug 21, 2018CVE-2018-12115 The Node.js Project Node.js: out-of-bounds write (memory corruption)
- Jun 13, 2018CVE-2018-7167 The Node.js Project Node.js: memory corruption (buffer overflow)
- Jun 13, 2018CVE-2018-7164 The Node.js Project Node.js: denial of service (uncontrolled resource consumption)
Questions about CVE-2018-7166
Is CVE-2018-7166 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 06:38 UTC. FIRST's EPSS gives it a 3.29% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of The Node.js Project Node.js are affected by CVE-2018-7166?
Node.js All versions of Node.js 10 prior to 10.9.0, per the CVE record by nodejs. The tables above give every range the sources list.
Which version fixes CVE-2018-7166?
10.9.0, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-7166?
High (7.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-7166?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.