Skip to content
Latest alerttiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak
0xCERT
All advisories
Medium0xCERT-2026-0385·

tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak

tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak. The three-argument xOnlyPointAddTweakCheck path ignores the wasm failure return and compares an unchanged input buffer. When the tweak result is the point at infinity, this stale-buffer comparison can return true for an invalid derivation.

Vuln-watch · relayed from the GitHub Advisory Database; see Source & attribution below

Affected chainsBitcoin

Summary

The three-argument xOnlyPointAddTweakCheck path ignores the wasm failure return and compares an unchanged input buffer. When the tweak result is the point at infinity, this stale-buffer comparison can return true for an invalid derivation.

Affected

  • tiny-secp256k1 (npm) >= 2.1.0, < 2.2.5 — fixed in 2.2.5
  • @bitcoin-js/tiny-secp256k1-asmjs (npm) >= 2.2.2, < 2.2.5 — fixed in 2.2.5

Severity

Medium (CVSS 6.3), as rated by the upstream advisory.

Recommended actions

  • Upgrade tiny-secp256k1 to 2.2.5 or later
  • Upgrade @bitcoin-js/tiny-secp256k1-asmjs to 2.2.5 or later

Source & attribution

This 0xCERT advisory summarises GHSA-hj9c-qx2w-g7mh / CVE-2026-107853 from the GitHub Advisory Database, credited upstream to 0xaudron, Ali-Kalout, landabaso, Kvazar-ai: https://github.com/advisories/GHSA-hj9c-qx2w-g7mh. Details may change; refer to the original source for the authoritative record.

OpenPGP-signed. The signed text of this advisory verifies against the 0xCERT key CCC7 D9EC 9415 723D.

Published 2026-11-19 · last updated 2026-11-19

curl -s https://www.0xcert.com/pgp.asc | gpg --import && curl -s https://www.0xcert.com/advisory/0xCERT-2026-0385/signed.txt | gpg --verify