vectormark@1.0.0
Malicious code in vectormark (npm)
Analysis
vectormark@1.0.0 is a trojanized SVG helper that exports a hidden getPlugin() function. When called, getPlugin() reads the AVALANCHE_FUJI_RPC_URL and SNOWTRACE_API_KEY environment variables, performs an HTTPS GET to the RPC URL (default: hxxps://api[.]avax-test[.]dev/ext/bc/C/rpc) with TLS verification disabled, and passes the response body to new Function('require', data.toString())(require) — executing arbitrary remote code with full access to Node.js require(). The package's README describes only benign SVG parsing functions and does not document getPlugin(). The RPC URL is attacker-controlled via the AVALANCHE_FUJI_RPC_URL environment variable, making the response body a fully attacker-controlled payload.
- analyzed by
- Leitwacht
- first seen
- Jul 22, 2026, 07:09 AM
- analyzed
- Jul 22, 2026, 07:11 AM
- weekly installs
- 104
Related advisories
- xerohub-discord-voice-v2@1.8.0
- code-analyzer-mcp@1.0.0
- habingeer@2.1.6
- og-boost-br@1.0.0
- crypto-javas@2.0.8
- n8n-nodes-net-utils@1.0.0
- n8n-nodes-utils-helper@1.0.0
- n8n-nodes-task-runner@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.