MAL-2026-13621 Malicious code in @decido/backend-core (npm)
Malicious package
Published
MAL-2026-13621 is a malicious package: @decido/backend-core (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-13621/ (Markdown: https://insights.sbomify.com/MAL-2026-13621/index.md)
- Package
- @decido/backend-core
- Registry
- npm
What is MAL-2026-13621?
MAL-2026-13621 is a malicious package in @decido/backend-core, published on 7 Aug 2026.
Official description
The package exports createAuthMiddleware / createAuthRouter for use as Express authentication middleware in downstream applications. The middleware short-circuits JWT verification when the incoming Authorization header bearer value equals the literal string 'mock-admin-token', returning a synthesized ADMIN user and calling next() without any further validation. A second literal 'mock-token-123' grants a STUDENT identity on the same code path. Any deployment that wires this middleware into its Express app accepts these fixed strings as valid credentials, so any HTTP client that sends 'Authorization: Bearer mock-admin-token' passes requirePermission checks that gate administrative routes (user listing, role changes, permission editing). The tokens are hardcoded in published code and are effectively universal admin credentials known to anyone who inspects the package.
What should I do about MAL-2026-13621?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.