HighGHSA-m6wq-66p2-c8pcGO-2025-4211

Babylon Nil BlockHash in BLS vote extensions triggers panics in consensus handlers

Published 8 Dec 2025 · Updated 17 Dec 2025

Is your project on an affected github.com/babylonlabs-io/babylon/v4?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
<4.2.0
Fixed in
4.2.0
Update to the fixed version for your release line, for example:go get github.com/babylonlabs-io/babylon/v4@v4.2.0
Affected
<=3.0.0-snapshot.250805a
Fixed in
No fix released
Affected
<=2.3.2
Fixed in
No fix released
Affected
<=1.1.0
Fixed in
No fix released

Details

Summary

A vulnerability exists in Babylon’s BLS vote extension processing where a malicious active validator can submit a VoteExtension with the block_hash field omitted from the protobuf serialization. Because protobuf fields are optional, unmarshalling succeeds but leaves BlockHash as nil. Babylon then dereferences this nil pointer in consensus-critical code paths (notably VerifyVoteExtension, and also proposal-time vote verification), causing a runtime panic.

Impact

Intermittent validator crashes at epoch boundaries, which would slow down the creation of the epoch boundary block.

Finder

Vulnerability discovered by:

  • @GrumpyLaurie55348

Is GHSA-m6wq-66p2-c8pc in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/babylonlabs-io/babylon/v4, and gives you the command that fixes it.

More advisories for github.com/babylonlabs-io/babylon/v4

  • LowGO-2025-4214Babylon Incorrect FP inactive accounting in costaking creates “phantom stake” that earns rewards after BTC unbond in github.com/babylonlabs-io/babylon · 15 Dec 2025
  • MediumGHSA-4rmq-mc2c-r495Babylon Incorrect FP inactive accounting in costaking creates “phantom stake” that earns rewards after BTC unbond · 9 Dec 2025
  • LowGO-2025-4157Babylon's malformed vote extensions are not rejected in github.com/babylonlabs-io/babylon · 25 Nov 2025
  • LowGO-2025-4159Babylon's BIP322 signature implementation is not fully compliant to the spec in github.com/babylonlabs-io/babylon · 25 Nov 2025
  • MediumGHSA-xq4h-wqm2-668wBabylon's BIP322 signature implementation is not fully compliant to the spec · 24 Nov 2025
  • HighGHSA-2fcv-qww3-9v6hBabylon's malformed vote extensions are not rejected · 24 Nov 2025
github.com/babylonlabs-io/babylon/v4 security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.