AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 60 Bitcoin

fix: invalidate jwt token on password reset (#4248)

Public commit record

What the developer wrote

Authored by Vlad Stan

70/100 · Adequate
fix: invalidate jwt token on password reset (#4248)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a security bug in LNbits where changing or resetting a user's password did not automatically log out active sessions. Before the fix, someone who stole or shared a login session could keep using it even after the password was changed, because the system only checked two-factor authentication revisions, not password changes. The patch now bumps a hidden 'session revision' whenever the password changes, so all existing tokens and browser cookies are rejected and the user must log in again.

Recommended action

Deploy this patch promptly. After upgrading, advise users to change their password if they suspect an active session may have been compromised, as the fix only invalidates sessions created after the patch is live. Review whether any other credential or security-setting changes (e.g., email/SSO linking) also need to bump the session revision.

Security signals we found

01

Session invalidation on credential change

02

Atomic update of password hash and MFA revision

03

Removal of bypass path that skipped revision check when 2FA was disabled

04

Regression tests for both password update and password reset operations

Risk score

Why this scored 60/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.