svgcraft-core (npm) · Malicious Code
Affects svgcraft-coreSource GCVE Database
Malicious package : remove svgcraft-core and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:56 UTC
Malicious package
Published to npm · OSV MAL-2026-6715
What to do
Remove svgcraft-core from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmsvgcraft-core | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (3863ea8f67c7365031b5ffb43aaa2721062669b49be8157e1dd32ce19dce511f) src/index.cjs exports getPlugin(), which returns a function that performs an HTTPS GET to a hardcoded URL 'https://api.avax-test.dev/ext/bc/C/rpc' with TLS verification disabled (rejectUnauthorized: false) and passes the response body to new Function('require', data)(require). Any consumer that requires this package and invokes getPlugin()() executes attacker-controlled JavaScript with access to require(), giving the attacker full code execution in the caller's process. The destination host 'api.avax-test.dev' typosquats Avalanche Fuji's official RPC endpoint 'api.avax-test.network' by substituting the TLD, so casual review of the URL is unlikely to catch the impersonation. The paired ESM entry src/index.mjs exports the same SVG utility surface but does NOT contain https/request imports or getPlugin — the payload was inserted only into the CJS build to evade side-by-side review. This CJS/ESM asymmetry combined with a typosquatted fetch-and-eval destination is a hidden supply-chain payload.
References
- npmjs.com/package/svgcraft-core/v/1.0.1 (opens in a new tab)
- npmjs.com/package/svgcraft-core/v/1.0.2 (opens in a new tab)
- npmjs.com/package/svgcraft-core/v/1.0.4 (opens in a new tab)
- npmjs.com/package/svgcraft-core/v/1.0.3 (opens in a new tab)
- npmjs.com/package/svgcraft-core/v/1.0.6 (opens in a new tab)
- npmjs.com/package/svgcraft-core/v/1.0.5 (opens in a new tab)
- github.com/advisories/GHSA-j9vc-q728-qcx4 (opens in a new tab)
- npmjs.com/package/svgcraft-core/v/1.0.7 (opens in a new tab)
- npmjs.com/package/svgcraft-core/v/1.0.0 (opens in a new tab)