MAL-2026-12357 Malicious code in cors-security (npm)
Malicious package
Published
MAL-2026-12357 is a malicious package: cors-security (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-12357/ (Markdown: https://insights.sbomify.com/MAL-2026-12357/index.md)
- Package
- cors-security
- Registry
- npm
What is MAL-2026-12357?
MAL-2026-12357 is a malicious package in cors-security, published on 5 Aug 2026.
Official description
The CommonJS entry point of [email protected] exposes a getPlugin() API that issues an HTTPS GET to the hardcoded host workconfig.vercel.app and passes the response body directly to new Function('require', data)(require), running attacker-controlled JavaScript inside the consumer's Node process with access to require. TLS certificate verification is disabled on that request (rejectUnauthorized: false). The remote-loader code is present only in the CJS entry and absent from the ESM variant, and does not relate to the package's advertised SVG-utility purpose (name svgcraft, description "Professional zero-dependency SVG utilities"). Any consumer that requires the package and invokes the returned function executes whatever content the operator of workconfig.vercel.app serves at that moment.
What should I do about MAL-2026-12357?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.