🛡️ MAL-2026-6276 — node-core-libs

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Malicious code in node-core-libs (npm)

Source: amazon-inspector

scripts/postinstall.js runs automatically on npm install (Windows only) and behaves as a classic install-time dropper. It XOR-decodes (key 0x5A) a hardcoded host and port to produce node22.lunes.host:3258, performs an HTTP GET to http://node22.lunes.host:3258/nl, writes the response bytes to %TEMP%/ms_<rand>.js, and launches them via a generated wscript.exe //B //nologo <vbs> shim with detached:true and windowsHide. The destination is plain HTTP with no version pin, no hash verification, and no integrity check — any bytes the operator of node22.lunes.host returns are executed on the installer's machine. After dropping the payload the script self-cleans: a _tidy() routine rewrites the package's own package.json to remove scripts.postinstall and scripts.install, then unlinks the postinstall script itself, frustrating post-incident review. The script also writes %TEMP%/.nfc_root as a coordination marker and probes for a sibling package node-fetch-utils (a likely typosquat of node-fetch) referencing a node_launcher.js that patches lockfiles, indicating a multi-package campaign with persistence beyond this tarball. The XOR obfuscation of the C2 host, port, and a changeme-spectre key is deliberate concealment of the destination from registry scanners. Installer impact: running npm install node-core-libs on Windows results in arbitrary attacker-controlled code execution under the installing user's account.

Source: ghsa-malware

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

MAL-2026-6276 is recorded against 1 package.

  • node-core-libs

Timeline and source

Published on 23 June 2026 and last revised on 24 June 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Advisory)
www.npmjs.com (Package)
www.npmjs.com (Package)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-06-23
Updated 2026-08-12
Modified 2026-06-24
Fix URL N/A

Affected Packages

Software From version Fixed in
node-core-libs

Free Vulnerability Check

Is your site affected by MAL-2026-6276?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-6276 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.