LWA-2026-7083 MAL-2026-12026 ↗ confirmed malware

cors-version@1.0.3

Malicious code in cors-version (npm)

Analysis

cors-version is a combosquat of the popular cors package. The package ships a trojanized SVG utility library (described as "svgcraft-core") with a remote-code-execution dropper in src/index.cjs. The getPlugin() function makes an HTTPS GET request to api[.]avax-test[.]dev/ext/bc/rpc (with TLS verification disabled), then passes the response body to new Function('require', data.toString())(require), executing arbitrary remote code with full Node.js require access. The package has no lifecycle hooks — the payload executes when the getPlugin() function is called by any code that imports the package. The package name cors-version is unrelated to its described SVG-utility purpose.

analyzed by
Leitwacht
first seen
Jul 24, 2026, 09:54 AM
analyzed
Jul 24, 2026, 09:55 AM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.