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

feat: Add superuser action to reset all wallet keys (#4320)

Public commit record

What the developer wrote

Authored by Vlad Stan

70/100 · Adequate
feat: Add superuser action to reset all wallet keys (#4320)

Co-authored-by: alan <alan@lnbits.com>
✓ 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 adds a recovery feature that lets the LNbits superuser instantly replace every wallet's secret keys, including keys for deleted wallets, and clear any cached copies of the old keys. The vendor says this is needed because of a recent security incident where wallet keys may have been exposed; without rotation, attackers could still spend or steal funds even after the server is upgraded. The change itself is a defensive control, not an attack, but it confirms the underlying incident is serious and affects all versions before 1.7.0.

Recommended action

Operators running LNbits versions before 1.7.0 should upgrade immediately and then use the new superuser 'Reset Wallet Keys' action to rotate all wallet keys and clear cached credentials, as instructed by the vendor. Review access logs for unauthorized use of wallet keys before rotating.

Security signals we found

01

Vendor describes the change as a recovery control for a security incident involving exposed wallet credentials

02

Vendor states all versions before 1.7.0 are affected and funds are at risk of theft

03

New superuser-only endpoint can rotate every wallet's admin and invoice keys, including deleted wallets

04

Old cached keys are explicitly invalidated during rotation

05

Tests confirm old keys return 404 after rotation and deleted-wallet restoration does not restore compromised keys

06

UI button is gated on superuser status and requires explicit confirmation

Risk score

Why this scored 100/100

Our methodology →
Potential impact 30/30
Exploitability 25/25
Stealth signal 15/15
Affected reach 15/15
Confidence 10/10
Evidence quality 5/5
Primary-source trail

Evidence and disclosure record

Verified links used to place this patch in context. External claims remain attributed to their publishers.

Vendor advisory · Primary

Add superuser recovery action to reset every wallet key

Recovery control added for the incident: a superuser can rotate admin and invoice keys for all wallets, including deleted wallets, and invalidate cached old keys. LNbits' operator guidance requires this step because exposed credentials may remain usable after upgrading.

Vendor advisory

LNbits 1.7.0 security update and recovery guidance

The vendor says every version before 1.7.0 is affected, funds are at risk of theft, and exposed credentials may remain usable after an upgrade. It requires key and secret rotation in addition to updating.

Release notes

LNbits v1.7.0 urgent security update

The first stable release containing the November incident fixes and recovery controls. LNbits instructs all operators to update immediately.

Release notes

LNbits v1.7.0 security release announcement

Official announcement that v1.7.0 is released and operators should follow the linked upgrade guidance.

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.