GHSA-rj53-j6jw-7f7g: Github.com/babylonlabs io/babylon/v2 Babylon Vulnerable To Chain Halt Vulnerability

HIGH
CWE-754
Published
Advisory Summary

GHSA-rj53-j6jw-7f7g is a HIGH babylon vulnerable to chain halt vulnerability (CWE-754: Improper Check for Unusual or Exceptional Conditions) affecting Github.com/babylonlabs io/babylon/v2 libraries in the Go ecosystem. The issue involves babylon vulnerable to chain halt when a message modifies the validator set at the epoch boundary. Remediation is available by upgrading affected packages to version 2.1.0.

GHSA-rj53-j6jw-7f7g at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-rj53-j6jw-7f7g
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-754: Improper Check for Unusual or Exceptional Conditions
Affected Product Github.com/babylonlabs io/babylon/v2
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-rj53-j6jw-7f7g

To remediate this vulnerability, upgrade all affected Github.com/babylonlabs io/babylon/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/babylonlabs-io/babylon/v2 fixed: 2.1.0
Upgrade github.com/babylonlabs-io/babylon/v2 to 2.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/babylonlabs-io/babylon/v2

How to Check if You Are Affected

To determine whether your application is affected by GHSA-rj53-j6jw-7f7g, inspect your project dependencies for Github.com/babylonlabs io/babylon/v2:

inspect dependencies for github.com/babylonlabs-io/babylon/v2

Analyze the terminal output to locate any version of Github.com/babylonlabs io/babylon/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions, where the product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product. In Github.com/babylonlabs io/babylon/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Sending a message that modifies the validator set at the epoch boundary halts the chain. ### Impact Denial of Service - Comos-sdk prevents modifying the validator set from two different modules - https://github.com/cosmos/cosmos-sdk/blob/release/v0.50.x/types/module/module.go#L811. Such an operation leads to panic and chain halt. ### Detailed Post mortem https://boiling-lake-106.notion.site/2025-06-18-Genesis-mainnet-chain-halt-post-mortem-229f60cc1b5f80b7adf5e3ea0541ea87

GHSA-rj53-j6jw-7f7g Affected Github.com/babylonlabs io/babylon/v2 Versions

1 component(s)
Fixed Versions:
2.1.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/babylonlabs-io/babylon/v2
Go
≥ 2.0.0
< 2.1.0
2.1.0

References

Frequently Asked Questions

What is GHSA-rj53-j6jw-7f7g?
GHSA-rj53-j6jw-7f7g is a security vulnerability in Github.com/babylonlabs io/babylon/v2 involving Babylon vulnerable to chain halt when a message modifies the validator set at the epoch boundary under CWE-754: Improper Check for Unusual or Exceptional Conditions.
Which Github.com/babylonlabs io/babylon/v2 versions are affected?
Affected versions include releases prior to 2.1.0 across affected packages: github.com/babylonlabs-io/babylon/v2.
What version fixes GHSA-rj53-j6jw-7f7g?
Upgrading to 2.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/babylonlabs-io/babylon/v2 affected?
Yes, github.com/babylonlabs-io/babylon/v2 is affected in releases prior to 2.1.0. Upgrade your dependency to 2.1.0 or later.
What CWE is associated with GHSA-rj53-j6jw-7f7g?
GHSA-rj53-j6jw-7f7g is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions (The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.).
How can I check Go dependencies for GHSA-rj53-j6jw-7f7g?
Run the dependency tree command: 'inspect dependencies for github.com/babylonlabs-io/babylon/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rj53-j6jw-7f7g",
  "modified" : "2025-07-08T19:09:11Z",
  "published" : "2025-07-08T19:09:11Z",
  "aliases" : [ ],
  "summary" : "Babylon vulnerable to chain halt when a message modifies the validator set at the epoch boundary",
  "details" : "### Summary\n\nSending a message that modifies the validator set at the epoch boundary halts the chain.\n\n### Impact\n\nDenial of Service - Comos-sdk prevents modifying the validator set from two different modules - https://github.com/cosmos/cosmos-sdk/blob/release/v0.50.x/types/module/module.go#L811. Such an operation leads to panic and chain halt.\n\n### Detailed Post mortem\n\nhttps://boiling-lake-106.notion.site/2025-06-18-Genesis-mainnet-chain-halt-post-mortem-229f60cc1b5f80b7adf5e3ea0541ea87",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/babylonlabs-io/babylon/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/babylonlabs-io/babylon/security/advisories/GHSA-rj53-j6jw-7f7g"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/babylonlabs-io/babylon/pull/1244/files"
  }, {
    "type" : "WEB",
    "url" : "https://boiling-lake-106.notion.site/2025-06-18-Babylon-Genesis-Chain-Halt-Post-Mortem-229f60cc1b5f80b7adf5e3ea0541ea87"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/babylonlabs-io/babylon"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/babylonlabs-io/babylon/releases/tag/v2.1.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-754" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-08T19:09:11Z",
    "nvd_published_at" : null
  }
}