github.com/babylonlabs-io/babylon/v4
Affected
- introduced
0, fixed4.2.0(semver)
Fixed versions
4.2.0
Fix
- Fixed version
4.2.0go get github.com/babylonlabs-io/babylon/[email protected]
Advisory
Also known as: GO-2025-4214
Babylon Incorrect FP inactive accounting in costaking creates “phantom stake” that earns rewards after BTC unbond
Summary
A state consistency bug in x/costaking can leave a BTC delegator with non-zero ActiveSatoshis (Phatom Stake) even after they have fully unbonded their BTC delegation, if their Finality Provider (FP) drops out of the active set in the exact same babylon block height. This creates a “phantom stake”: the delegator’s BTC capital is withdrawn, the FP is inactive, but costaking continues to treat the delegation as active BTC stake allowing ongoing rewards accrual without backing BTC.
Impact
An address can keep earning costaking rewards with zero BTC staked.
Reported by @BottyBott.
Medium Basis: The source's own band: MODERATE
0, fixed 4.2.0 (semver)4.2.0
4.2.0go get github.com/babylonlabs-io/babylon/[email protected]0, last affected 3.0.0-snapshot.250805a (semver)None listed
No fixed version is listed.
0, last affected 2.3.2 (semver)None listed
No fixed version is listed.
0, last affected 1.1.0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0