sourcefuse / sourcefuse/loopback4-microservice-catalog

Security Vulnerability: JWT Tokens Remain Valid After Logout

Open
#2,570 0 comments 0 reactions 1 assignee View on GitHub

@Sourav-kashyap is already working on this.

Since Jun 19, 2026.

  • #2571 by @Sourav-kashyap — 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:

  1. Logged-out users retain access to protected APIs until their JWT naturally expires
  2. Session invalidation through logout is ineffective
  3. In case of security incidents, compromised tokens cannot be immediately revoked
  4. Access token lifetime becomes the effective session lifetime, regardless of logout

Affected Components:

  • All microservices using @sourceloop/core's BearerVerifierComponent with BearerVerifierType.service
  • Services using default ServiceSequence for request handling

Not Affected:

  • Authentication Service (uses custom BearerTokenVerifyProvider)
  • Facade Services (use FacadesBearerAsymmetricTokenVerifyProvider)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.