Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk5 min

How to Stop a Stolen JWT from Surviving a Password Reset

A password change does not automatically reach every API holding a still-valid JWT. Learn which revocation mechanisms can stop an access token before expiry.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A password reset does not necessarily invalidate access tokens that have already been issued. If an API accepts a JWT after checking its signature and claims but never checks current session or revocation state, a still-valid token may continue to work until it expires. That is an architectural choice, not a rule that applies to every JWT-based system.

Why a password reset may not end existing access

A password is a credential used to authenticate a person. A JWT access token is a separate credential already held by a client and presented to an API. Changing the password does not, by itself, change the contents of that token or tell every service that accepts it to reject it.

As an Amazon Associate I earn from qualifying purchases.

JWTs are often validated using information carried in the token and configured trust, without a lookup for current session state. OWASP recommends that REST APIs validate relevant properties such as the token’s issuer, audience, and expiry. If a service performs only such stateless validation, an otherwise valid token can remain usable after a password reset. The JWT standard defines claims such as expiration, but expiry is not a password-reset notification: RFC 7519; OWASP REST Security Cheat Sheet.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Whether a reset signs users out therefore depends on the application and identity provider: which tokens they revoke, whether resource servers check that revocation, and how quickly changes reach those servers. A refresh token and an access token must be treated separately. Revoking a refresh token can stop future access-token issuance without necessarily rejecting an access token that has already been issued.

#1 Best Overall
Yubico - Security Key C NFC - Basic Compatibility - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.

What happens to each token

Credential What it does Effect of a password change
Password Authenticates a user when credentials are submitted. The credential changes. This does not itself notify every API that has accepted a token.
Refresh token Lets a client request new access tokens under the authorization server’s policy. An authorization server may revoke it on password change or logout. RFC 9700 says authorization servers MAY do this; confirm the provider’s behavior rather than assuming it.
Access token Is presented to a resource server to access a protected API. A still-unexpired JWT may remain acceptable unless the resource server learns it has been revoked or applies another current-state check.

RFC 9700, the IETF’s January 2025 OAuth security best-current-practice document, says authorization servers may automatically revoke refresh tokens after a password change or logout. That can prevent renewal, but it does not establish that every resource server will immediately reject all previously issued JWT access tokens. The separate revocation standard, RFC 7009, says: “Implementations MUST support the revocation of refresh tokens and SHOULD support the revocation of access tokens.” It also recognizes that revocation can take time to propagate. Whether associated access tokens are invalidated when a refresh token is revoked depends on the authorization server’s capabilities and policy.

Ways to reject a token before it expires

There is no single revocation mechanism required for every JWT deployment. Choose based on how quickly a stolen token must stop working, whether APIs can reach a shared state source, and the operational cost of checking current status.

Rank #2
Yubico - YubiKey 5C NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts

Use short-lived access tokens

Short expiry limits the period during which an exposed access token can be reused. It is a time limit, not immediate revocation: a token remains usable until expiry unless another check rejects it. OWASP recommends short expiration as one mitigation for token reuse in its JSON Web Token Cheat Sheet.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check an issuer-and-jti denylist

For explicit session termination, an application can record a token’s unique, server-issued jti identifier, commonly associated with its issuer, in a denylist. Each relevant resource server checks that list while validating requests and rejects listed tokens until they expire. OWASP REST guidance says: “When an explicit session termination event occurs, a unique, server-issued identifier (the jti claim, optionally combined with aud) should be submitted to a denylist on the API which will invalidate that JWT for any requests until the expiration of the token.”

Rank #3
Yubico - YubiKey 5 NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-A or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
  • Rejection speed: The token can be rejected on a request once the relevant API sees the denylist entry.
  • Shared state: Every resource server that must enforce revocation needs access to the denylist or an equivalent synchronized view.
  • Trade-offs: A request-path lookup adds a dependency whose availability, latency, and consistency matter. In a distributed deployment, propagation delays can leave a window before all services see the entry.

Use the issuer-and-jti approach described by OWASP or evaluate another status mechanism for the token profile. OWASP warns against using raw JWT bytes or a hash of the token as the denylist key because alternative valid token representations can undermine that approach.

Use an OAuth token revocation endpoint

RFC 7009 defines a POST mechanism for asking an authorization server to revoke a token. Its requirements distinguish refresh-token revocation from access-token revocation, and the effect at a resource server depends on what that server and the authorization server implement. An offline JWT validator that checks only signature and claims does not automatically learn that an authorization server received a revocation request. Check the provider’s behavior, including whether revoking a refresh token also invalidates associated access tokens and how revocation status reaches APIs.

Rank #4
Yubico - Security Key NFC - Basic Compatibility - Multi-Factor Authentication (MFA) Key, Connect via USB-A or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key NFC via USB-A and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.

Consider a Token Status List

A Token Status List is an issuer-based option in which a token points consumers to a list and an index used to obtain its status. OWASP describes it as a scalable revocation approach, but support is implementation-specific. Verify that the issuer, token format, libraries, and resource servers in your deployment support it before relying on it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Reduce the impact of a stolen bearer token

Bind tokens to a key where practical

Sender-constrained access tokens require the client to prove possession of associated key material, for example through mutual TLS (mTLS) or Demonstrating Proof of Possession (DPoP). RFC 9700 recommends sender-constraining as a way to reduce misuse of stolen or leaked tokens. Someone who steals only the token may be unable to use it without the key; if both token and key material are compromised, that protection is weakened. Sender constraint reduces replay risk but does not define what a password reset revokes.

Best Value
Yubico - YubiKey 5C - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB, FIDO Certified - Protect Your Online Accounts (5C)
  • POWERFUL SECURITY KEY: The YubiKey 5 is a versatile physical passkey that protects your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 secures 100+ of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 via USB and tap it to authenticate. No batteries, no internet connection, and no extra fees required.
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.

Restrict each token to its intended audience

RFC 9700 says access tokens should be restricted to specific resource servers, and a resource server must reject a token not intended for it. Audience restriction limits where a leaked token can be used; it does not terminate a valid token at its intended audience.

Decide what your application promises after a reset

Make the reset and logout behavior explicit in the system’s security design. Trace what happens from the password-change event through the authorization server to each API that accepts access tokens.

  1. Identify token types. Document where access tokens and refresh tokens are issued, stored, and validated.
  2. Define the required outcome. Decide whether a reset must stop future token renewal, reject existing access tokens immediately, or both. Do not describe one outcome as the other.
  3. Choose enforcement points. If existing access tokens must be rejected before expiry, ensure every relevant resource server checks revocation or status—or use another mechanism that makes the change visible to it.
  4. Account for propagation. Determine how quickly revocation state reaches each service and what happens if the state source is unavailable. Do not promise instantaneous global invalidation unless the architecture can support that guarantee.
  5. Explain the behavior to users and operators. State whether changing a password ends active sessions, and provide an explicit way to terminate sessions if that is a separate action.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.