Malicious code in cors-version (npm)
MAL-2026-12026 · GHSA-2hwp-7m6r-hgjg
Published · Modified
Dependency scanning
Check whether cors-version is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
__
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.
References
- ADVISORY https://github.com/advisories/GHSA-2hwp-7m6r-hgjg
- PACKAGE https://www.npmjs.com/package/cors-version/v/1.0.2
- PACKAGE https://www.npmjs.com/package/cors-version/v/1.0.3
- PACKAGE https://www.npmjs.com/package/cors-version/v/1.0.5
- PACKAGE https://www.npmjs.com/package/cors-version/v/1.0.4
- PACKAGE https://www.npmjs.com/package/cors-version/v/1.0.1
- PACKAGE https://www.npmjs.com/package/cors-version/v/1.0.0
Ready to move
Start Securing
Free, no credit card | First findings in minutes