Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/nhost/nhost
  4. ›
  5. GHSA-7hgr-xvrr-xpw3

GHSA-7hgr-xvrr-xpw3: nhost has Session Persistence After Password Change

May 8, 2026

When a user changes their password, either through the authenticated password change endpoint or a password reset ticket, the ChangePassword workflow correctly hashes and persists the new password via UpdateUserChangePassword. However, it does not revoke existing sessions. The auth.refresh_tokens and auth.oauth2_refresh_tokens tables are left untouched, meaning all previously issued refresh tokens remain valid and can continue generating new access tokens indefinitely.

This vulnerability affects all password change paths (handled in change_user_password.go), since they share the same underlying workflow:

  • Authenticated password change via the Nhost dashboard or client SDK
  • Ticket-based password reset (magic links / recovery flows)
  • OAuth2/OIDC sessions managed via auth.oauth2_refresh_tokens

References

  • github.com/advisories/GHSA-7hgr-xvrr-xpw3
  • github.com/nhost/nhost/commit/52c70664a7e92031e592b873471939b10ca18079
  • github.com/nhost/nhost/security/advisories/GHSA-7hgr-xvrr-xpw3

Code Behaviors & Features

Detect and mitigate GHSA-7hgr-xvrr-xpw3 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 0.0.0-20260430132514-52c70664a7e9

Fixed versions

  • 0.0.0-20260430132514-52c70664a7e9

Solution

Upgrade to version 0.0.0-20260430132514-52c70664a7e9 or above.

Impact 5.4 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-613: Insufficient Session Expiration

Source file

go/github.com/nhost/nhost/GHSA-7hgr-xvrr-xpw3.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Mon, 15 Jun 2026 00:17:50 +0000.