GHSA-7HGR-XVRR-XPW3

GHSA-7HGR-XVRR-XPW3 is a low-severity security vulnerability in github.com/nhost/nhost (go), affecting versions < 0.0.0-20260430132514-52c70664a7e9. It is fixed in 0.0.0-20260430132514-52c70664a7e9.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

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. 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

  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.

Affected versions

github.com/nhost/nhost (< 0.0.0-20260430132514-52c70664a7e9)

Security releases

github.com/nhost/nhost → 0.0.0-20260430132514-52c70664a7e9 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade github.com/nhost/nhost to 0.0.0-20260430132514-52c70664a7e9 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is GHSA-7HGR-XVRR-XPW3? GHSA-7HGR-XVRR-XPW3 is a low-severity security vulnerability in github.com/nhost/nhost (go), affecting versions < 0.0.0-20260430132514-52c70664a7e9. It is fixed in 0.0.0-20260430132514-52c70664a7e9.
  2. Which versions of github.com/nhost/nhost are affected by GHSA-7HGR-XVRR-XPW3? github.com/nhost/nhost (go) versions < 0.0.0-20260430132514-52c70664a7e9 is affected.
  3. Is there a fix for GHSA-7HGR-XVRR-XPW3? Yes. GHSA-7HGR-XVRR-XPW3 is fixed in 0.0.0-20260430132514-52c70664a7e9. Upgrade to this version or later.
  4. Is GHSA-7HGR-XVRR-XPW3 exploitable, and should I be worried? Whether GHSA-7HGR-XVRR-XPW3 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether GHSA-7HGR-XVRR-XPW3 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix GHSA-7HGR-XVRR-XPW3? Upgrade github.com/nhost/nhost to 0.0.0-20260430132514-52c70664a7e9 or later.

Other vulnerabilities in github.com/nhost/nhost

Stop the waste.
Protect your environment with Kodem.