GHSA-7hgr-xvrr-xpw3: nhost has Session Persistence After Password Change
Description 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.
Published May 8, 2026
Affected packages
github.com/nhost/nhost
- Ecosystem
- Go
- Affected
- < 0.0.0-20260430132514-52c70664a7e9
- Fixed in
- 0.0.0-20260430132514-52c70664a7e9
- Check
go list -m github.com/nhost/nhost
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Description
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
Attack Scenario
- An attacker steals a victim's refresh token via XSS or a compromised device.
- The victim changes their password, expecting it to terminate all active sessions.
- The server updates
password_hashbut performs no session cleanup, the stolen token remains fully functional.
Impact
The attacker retains persistent access even after the victim's password change. This is especially severe in credential theft scenarios, where the victim's only recovery action does nothing against an active session. Depending on configured TTL, the attacker's window could be days or weeks.
Credited to skoveit.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-47671
Nhost CLI local configserver allows cross-origin unauthenticated read/write access to local development configuration and secrets
medium5.4Jun 4, 2026CVE-2026-41574
Nhost Vulnerable to Account Takeover via OAuth Email Verification Bypass
critical9.8Apr 18, 2026CVE-2026-34969
Nhost Leaks Refresh Tokens via URL Query Parameter in OAuth Provider Callback
low7.5Apr 1, 2026CVE-2026-33221
Nhost Storage Affected by MIME Type Spoofing via Trusted Client Content-Type Header in Storage Upload
low5.3Mar 18, 2026
