Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/lin-snow/ech0
  4. ›
  5. GHSA-fpw6-hrg5-q5x5

GHSA-fpw6-hrg5-q5x5: ech0's acess tokens with expiry=never cannot be revoked: logout panics, delete does not blacklist JTI

May 7, 2026

Access tokens created with the “never expire” option have no exp JWT claim. Three independent revocation mechanisms fail for this token type. Logout at internal/handler/auth/auth.go:154 and :163 dereferences claims.ExpiresAt.Time, panicking on the nil field so the token never hits the blacklist. RevokeToken at internal/repository/auth/auth.go:45-50 skips when remainTTL <= 0. The admin’s “Delete token” panel action at internal/service/setting/access_token_service.go:183-185 removes the database record but does not call RevokeToken to blacklist the JTI. Once a never-expire token leaks, the JWT stays cryptographically valid until the admin rotates the signing key across the entire instance.

References

  • github.com/advisories/GHSA-fpw6-hrg5-q5x5
  • github.com/lin-snow/Ech0/commit/eab62379c795c3f4850a9ca938ae3f27d7171541
  • github.com/lin-snow/Ech0/security/advisories/GHSA-fpw6-hrg5-q5x5

Code Behaviors & Features

Detect and mitigate GHSA-fpw6-hrg5-q5x5 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.4.8-0.20260503041146-eab62379c795

Fixed versions

  • 1.4.8-0.20260503041146-eab62379c795

Solution

Upgrade to version 1.4.8-0.20260503041146-eab62379c795 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-613: Insufficient Session Expiration
  • CWE-755: Improper Handling of Exceptional Conditions

Source file

go/github.com/lin-snow/ech0/GHSA-fpw6-hrg5-q5x5.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:36 +0000.