OpenSSF/OSV advisory MAL-2026-13621 confirms this npm version as malicious. 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...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @decido/backend-core (npm)
Details
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.
Decision reason
OpenSSF Malicious Packages via OSV confirms @decido/backend-core@4.1.19 as malicious (MAL-2026-13621): Malicious code in @decido/backend-core (npm)