sourcefuse / sourcefuse/loopback4-microservice-catalog
Security Vulnerability: JWT Tokens Remain Valid After Logout
Open
- Dominant language
- TypeScript
- Stars
- 297
- Forks
- 78
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 4
Description
Issue: When a user logs out of the system, their JWT access token remains valid until its natural expiration time, allowing the token to be used for authenticated requests even after logout.
Impact: This creates a security vulnerability where:
- Logged-out users retain access to protected APIs until their JWT naturally expires
- Session invalidation through logout is ineffective
- In case of security incidents, compromised tokens cannot be immediately revoked
- Access token lifetime becomes the effective session lifetime, regardless of logout
Affected Components:
- All microservices using
@sourceloop/core'sBearerVerifierComponentwithBearerVerifierType.service - Services using default
ServiceSequencefor request handling
Not Affected:
- Authentication Service (uses custom
BearerTokenVerifyProvider) - Facade Services (use
FacadesBearerAsymmetricTokenVerifyProvider)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.