VDB
KO

MAL-2026-12026

Malicious code in cors-version (npm)

Details

--- _-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (90e391c8883796e10e6d74a96311f18f2a083b2745a6bd6cae8a3d7acc61d277) The CommonJS entry src/index.cjs exports getPlugin(), which performs an HTTPS GET to the hardcoded host astonishing-torrone-ffb31e.netlify.app with TLS verification disabled (rejectUnauthorized: false) and passes the response body directly to new Function(..., require)(require), executing the retrieved JavaScript inside the caller's Node.js process with full require access. The package advertises itself as a zero-dependency SVG utility library and its ESM sibling src/index.mjs does not expose getPlugin, so the remote loader is only present in the CJS build and is unrelated to any declared functionality. Any consumer that imports the package and invokes getPlugin() — or downstream tooling that resolves plugin factories by name — will fetch and run attacker-controlled JavaScript, and the disabled TLS check additionally exposes the fetch to MITM substitution.

## Source: ghsa-malware (baf0c037ff57009bf7a5c8368b01bd5ed8bbb35a99ee3b1e02187b33982677ef) 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / cors-version
Introduced in: 0

No fixed version published yet for cors-version (npm). Pin to a known-safe version or switch to an alternative.

References