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
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.
References
- https://github.com/advisories/GHSA-hj9c-qx2w-g7mh
- CVE-2026-107853
- https://github.com/bitcoinjs/tiny-secp256k1/security/advisories/GHSA-hj9c-qx2w-g7mh
- https://nvd.nist.gov/vuln/detail/CVE-2026-107853
- https://github.com/bitcoinjs/tiny-secp256k1/commit/ba1af1fceea95967a172c6438ed9302730bb7c01
- https://github.com/bitcoinjs/tiny-secp256k1/releases/tag/v2.2.5
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