nhost has Session Persistence After Password Change
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-613.
Summary
## Description When a user changes their password, either through the authenticated password change endpoint or a password reset ticket, the [`ChangePassword`](https://github.com/nhost/nhost/blob/main/services/auth/go/controller/workflows.go#L731-L759) workflow correctly hashes and persists the new password via [`UpdateUserChangePassword`](https://github.com/nhost/nhost/blob/main/services/auth/go/sql/query.sql#L314-L318). 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`](https://github.com/nhost/nhost/blob/main/services/auth/go/controller/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 1. An attacker steals a victim's refresh token via XSS or a compromised device. 2. The victim changes their password, expecting it to terminate all active sessions. 3. The server updates `password_hash` but 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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/nhost/nhost (Go) | before 0.0.0-20260430132514-52c70664a7e9 | 0.0.0-20260430132514-52c70664a7e9 | Patch available | GHSA-7hgr-xvrr-xpw3 |
- github.com/nhost/nhost (Go) Vendor— Affected before 0.0.0-20260430132514-52c70664a7e9 Fixed in 0.0.0-20260430132514-52c70664a7e9 Patch available GHSA-7hgr-xvrr-xpw3
Remediation
- Fix · GHSA-7hgr-xvrr-xpw3 github.com/nhost/nhost (Go) Fixed in 0.0.0-20260430132514-52c70664a7e9 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-7hgr-xvrr-xpw3
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences