GHSA-xq4h-wqm2-668w: Github.com/babylonlabs io/babylon/v4 Babylon's BIP322 Signature Implementation Is Vulnerability

MODERATE
CWE-347
Published
Advisory Summary

GHSA-xq4h-wqm2-668w is a MODERATE babylon's bip322 signature implementation is vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Github.com/babylonlabs io/babylon/v4 libraries in the Go ecosystem. The issue involves babylon's bip322 signature implementation is not fully compliant to the spec. Remediation is available by upgrading affected packages to version 4.1.0.

GHSA-xq4h-wqm2-668w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xq4h-wqm2-668w
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Github.com/babylonlabs io/babylon/v4
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-xq4h-wqm2-668w

To remediate this vulnerability, upgrade all affected Github.com/babylonlabs io/babylon/v4 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/v4 fixed: 4.1.0
Upgrade github.com/babylonlabs-io/babylon/v4 to 4.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/v4

How to Check if You Are Affected

To determine whether your application is affected by GHSA-xq4h-wqm2-668w, inspect your project dependencies for Github.com/babylonlabs io/babylon/v4:

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

Analyze the terminal output to locate any version of Github.com/babylonlabs io/babylon/v4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.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-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Github.com/babylonlabs io/babylon/v4, 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 The BIP-322 signature verification does not enforce the SIGHASH value to be SIGHASH_ALL, and therefore is not strictly following the [spec](https://bips.dev/322/). ### Impact Non-compliant BIP-322 signatures in proof of possessions can be accepted by the chain.

GHSA-xq4h-wqm2-668w Affected Github.com/babylonlabs io/babylon/v4 Versions

1 component(s)
Fixed Versions:
4.1.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/babylonlabs-io/babylon/v4
Go
< 4.1.0
4.1.0

References

Frequently Asked Questions

What is GHSA-xq4h-wqm2-668w?
GHSA-xq4h-wqm2-668w is a security vulnerability in Github.com/babylonlabs io/babylon/v4 involving Babylon's BIP322 signature implementation is not fully compliant to the spec under CWE-347: Improper Verification of Cryptographic Signature.
Which Github.com/babylonlabs io/babylon/v4 versions are affected?
Affected versions include releases prior to 4.1.0 across affected packages: github.com/babylonlabs-io/babylon/v4.
What version fixes GHSA-xq4h-wqm2-668w?
Upgrading to 4.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/babylonlabs-io/babylon/v4 affected?
Yes, github.com/babylonlabs-io/babylon/v4 is affected in releases prior to 4.1.0. Upgrade your dependency to 4.1.0 or later.
What CWE is associated with GHSA-xq4h-wqm2-668w?
GHSA-xq4h-wqm2-668w is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check Go dependencies for GHSA-xq4h-wqm2-668w?
Run the dependency tree command: 'inspect dependencies for github.com/babylonlabs-io/babylon/v4'. 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-xq4h-wqm2-668w",
  "modified" : "2025-11-27T08:42:15Z",
  "published" : "2025-11-24T23:34:18Z",
  "aliases" : [ ],
  "summary" : "Babylon's BIP322 signature implementation is not fully compliant to the spec",
  "details" : "### Summary\n\nThe BIP-322 signature verification does not enforce the SIGHASH value to be SIGHASH_ALL, and therefore is not strictly following the [spec](https://bips.dev/322/).\n\n### Impact\n\nNon-compliant BIP-322 signatures in proof of possessions can be accepted by the chain.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/babylonlabs-io/babylon/v4"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/babylonlabs-io/babylon/security/advisories/GHSA-xq4h-wqm2-668w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/babylonlabs-io/babylon/commit/6e8bdd328a47343fcd7ad98d1b0c7267860b019a"
  }, {
    "type" : "WEB",
    "url" : "https://bips.dev/322"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/babylonlabs-io/babylon"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-24T23:34:18Z",
    "nvd_published_at" : null
  }
}