CVE-2026-107853 tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
tiny-secp256k1 is a tiny secp256k1 native/JS wrapper. From 2.1.0 until 2.2.5 for tiny-secp256k1 and from 2.2.2 until 2.2.5 for @bitcoin-js/tiny-secp256k1-asmjs, the three-argument xOnlyPointAddTweakCheck path ignores the backend failure return from xOnlyPointAddTweak when a tweak produces the point at infinity. The shared X_ONLY_PUBLIC_KEY_INPUT buffer then still contains the original point, so a caller-controlled resultToCheck equal to that point can make the stale-buffer comparison return true even though no tweaked key exists. Protocols that rely on this helper to validate caller-controlled internal keys, tweaks, and comparison values can accept an invalid derived key. This issue is fixed in version 2.2.5.
Upgrade path
4 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| @bitcoin-js/tiny-secp256k1-asmjs(npm) | >= 2.2.2, < 2.2.5 | 2.2.5 | Fixed |
| npm tiny-secp256k1(npm) | >= 2.1.0, < 2.2.5 | 2.2.5 | Fixed |
| @bitcoin-js iny-secp256k1-asmjs | = >= 2.2.2, < 2.2.5 | No fix listed | Versions listed |
| bitcoinjs tiny-secp256k1 | = >= 2.1.0, < 2.2.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| bitcoinjs tiny-secp256k1 | = >= 2.1.0, < 2.2.5 | No fix listed |
| @bitcoin-js iny-secp256k1-asmjs | = >= 2.2.2, < 2.2.5 | No fix listed |
| npm tiny-secp256k1(npm) | >= 2.1.0, < 2.2.5 | 2.2.5 |
| @bitcoin-js/tiny-secp256k1-asmjs(npm) | >= 2.2.2, < 2.2.5 | 2.2.5 |
References
- https://github.com/bitcoinjs/tiny-secp256k1/commit/ba1af1fceea95967a172c6438ed9302730bb7c01 patch
- https://github.com/bitcoinjs/tiny-secp256k1/releases/tag/v2.2.5
- https://github.com/bitcoinjs/tiny-secp256k1/security/advisories/GHSA-hj9c-qx2w-g7mh exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-127356 third-party-advisory