Malicious code in @decido/backend-core (npm)
The @decido/backend-core npm package contains hardcoded authentication tokens that bypass JWT verification. Specifically, the middleware accepts the literal strings 'mock-admin-token' and 'mock-token-123' as valid credentials, granting ADMIN and STUDENT access respectively without proper validation. This allows any client sending these tokens to gain unauthorized administrative or student-level access to applications using this middleware.
AI Analysis
Technical Summary
The @decido/backend-core package exports Express middleware for authentication that short-circuits JWT verification when the Authorization header contains the hardcoded bearer tokens 'mock-admin-token' or 'mock-token-123'. These tokens bypass normal authentication checks and grant fixed ADMIN or STUDENT identities, respectively. Because these tokens are hardcoded and publicly known, any application using this middleware is vulnerable to unauthorized access by attackers who supply these tokens in HTTP requests.
Potential Impact
Applications using the affected versions of @decido/backend-core that integrate this middleware are vulnerable to unauthorized access. Attackers can gain administrative privileges or student-level access by supplying the known hardcoded tokens, bypassing all normal authentication and permission checks. This can lead to unauthorized user listing, role changes, and permission editing within the affected applications.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the affected versions of @decido/backend-core or remove/replace the vulnerable middleware that accepts hardcoded tokens. Do not deploy applications with this middleware in production environments.
Malicious code in @decido/backend-core (npm)
Description
The @decido/backend-core npm package contains hardcoded authentication tokens that bypass JWT verification. Specifically, the middleware accepts the literal strings 'mock-admin-token' and 'mock-token-123' as valid credentials, granting ADMIN and STUDENT access respectively without proper validation. This allows any client sending these tokens to gain unauthorized administrative or student-level access to applications using this middleware.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @decido/backend-core package exports Express middleware for authentication that short-circuits JWT verification when the Authorization header contains the hardcoded bearer tokens 'mock-admin-token' or 'mock-token-123'. These tokens bypass normal authentication checks and grant fixed ADMIN or STUDENT identities, respectively. Because these tokens are hardcoded and publicly known, any application using this middleware is vulnerable to unauthorized access by attackers who supply these tokens in HTTP requests.
Potential Impact
Applications using the affected versions of @decido/backend-core that integrate this middleware are vulnerable to unauthorized access. Attackers can gain administrative privileges or student-level access by supplying the known hardcoded tokens, bypassing all normal authentication and permission checks. This can lead to unauthorized user listing, role changes, and permission editing within the affected applications.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the affected versions of @decido/backend-core or remove/replace the vulnerable middleware that accepts hardcoded tokens. Do not deploy applications with this middleware in production environments.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13621
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a77432abf8831d539b45df3
Added to database: 08/08/2026, 14:54:34 UTC
Last enriched: 08/08/2026, 15:37:41 UTC
Last updated: 08/08/2026, 20:00:42 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.