MAL-2026-12026 Malicious code in cors-version (npm)
- Package
- cors-version
- Registry
- npm
What is MAL-2026-12026?
MAL-2026-12026 is a malicious package in cors-version, published on 4 Aug 2026.
Official description
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.
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.
What should I do about MAL-2026-12026?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.
Sources
Also known as GHSA-2hwp-7m6r-hgjg.