# GHSA-xq4h-wqm2-668w: Babylon's BIP322 signature implementation is not fully compliant to the spec

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-11-24T23:34:18.000Z
- Modified: 2026-03-03T04:57:42.015Z
- Also known as: GO-2025-4159
- Weaknesses: CWE-347

## Description

### 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.

(As written by GitHub Advisory Database.)

## Affected

- github.com/babylonlabs-io/babylon/v4 (Go): before 4.1.0
- github.com/babylonlabs-io/babylon (Go): all versions
- github.com/babylonlabs-io/babylon/v2 (Go): all versions
- github.com/babylonlabs-io/babylon/v3 (Go): all versions

## References

- <https://github.com/babylonlabs-io/babylon/security/advisories/GHSA-xq4h-wqm2-668w> (advisory, web)
- <https://github.com/babylonlabs-io/babylon/commit/6e8bdd328a47343fcd7ad98d1b0c7267860b019a> (fix, web)
- <https://bips.dev/322> (web)
- <https://github.com/babylonlabs-io/babylon> (package)

## Sources

- GitHub Advisory Database: [GHSA-xq4h-wqm2-668w](https://github.com/advisories/GHSA-xq4h-wqm2-668w), CC-BY-4.0, modified 2025-11-27
- Go Vulnerability Database: [GO-2025-4159](https://pkg.go.dev/vuln/GO-2025-4159), CC-BY-4.0, modified 2026-03-03

---

Page: https://cve.day/GHSA-xq4h-wqm2-668w · Whole record: https://cve.day/GHSA-xq4h-wqm2-668w.json · Rebuilt by cve.day 2026-11-25T22:56:24.232Z
