Skip to content

fix: update bitcoinjs-lib, bolt11 and tiny-secp256k1 to patch security advisories - #227

Merged
RodriFS merged 1 commit into
masterfrom
fix/bitcoinjs-security-advisories
Oct 28, 2026
Merged

RodriFS merged 1 commit into
masterfrom
fix/bitcoinjs-security-advisories

Conversation

@RodriFS

@RodriFS RodriFS commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Updates BitcoinJS dependencies to the patched releases from the advisories published on 2026-10-26.

Package From To Advisories
bitcoinjs-lib 6.1.6 6.1.10 GHSA-h52v-8xwg-7j95, GHSA-4mfv-5394-26c7 (PSBT fee calculation), GHSA-8vv3-6qpc-gpw6 (merkle node duplication), GHSA-4vm8-79jj-j6w4 (PoW compact targets)
bolt11 1.4.1 1.4.2 GHSA-f9m8-vcm7-qp9h (duplicate payment-hash tags)
tiny-secp256k1 2.2.4 2.2.5 GHSA-rm9w-7fv8-3rhx, GHSA-85g9-f6v5-wqq7 (WASM stack corruption), GHSA-hj9c-qx2w-g7mh (infinity tweak check)

No application changes needed:

  • SwapService.createSwapIn already uses the first payment_hash tag, which matches the bolt11 1.4.2 behavior.
  • We don't call recover or xOnlyPointAddTweakCheck from tiny-secp256k1 directly.

The other packages in the advisories (bip39, bip38, merkle-lib, bip32-utils, tiny-secp256k1-asmjs) aren't in our dependency tree.

Testing

  • shared, server-backend and swap-frontend build.
  • bitcoin-only.test.ts: 4/4 pass.
  • integration.test.ts: 13 pass, 1 fails. The liquid swap-out tests fail intermittently with "insufficient funds available to construct transaction", on master as well (master: 12 pass, 2 fail).

Copilot AI balanced review requested due to automatic review settings October 27, 2026 15:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@RodriFS
RodriFS merged commit 694e044 into master Oct 28, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants