Skip to content

Security Vulnerability: JWT Tokens Remain Valid After Logout #2570

@Sourav-kashyap

Description

@Sourav-kashyap

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)

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions