CVE-2026-107853
tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak
- CVSS
- 6.3
- EPSS
- 0.46% (p42)
- Published
- 2026-11-17
- Age
- 19d old
- Modified
- 2026-11-19
- Product
- bitcoinjs tiny-secp256k1
- Aliases
- GHSA-hj9c-qx2w-g7mh
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
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.
Fixed in
2.2.5
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| npm | @bitcoin-js/tiny-secp256k1-asmjs | >= 2.2.2, < 2.2.5 | 2.2.5 |
| npm | @bitcoin-js/tiny-secp256k1-asmjs | >=2.2.2, <2.2.5 | 2.2.5 |
| npm | tiny-secp256k1 | >= 2.1.0, < 2.2.5 | 2.2.5 |
| npm | tiny-secp256k1 | >=2.1.0, <2.2.5 | 2.2.5 |
Sources
- NVD · first seen 19d ago · NVD terms of use
- OSV · first seen 17d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 17d ago · CC-BY 4.0
- CVE List · first seen 19d ago · CVE Terms of Use
References
- https://github.com/bitcoinjs/tiny-secp256k1/security/advisories/GHSA-hj9c-qx2w-g7mh x_refsource_CONFIRM
- https://github.com/bitcoinjs/tiny-secp256k1/commit/ba1af1fceea95967a172c6438ed9302730bb7c01 x_refsource_MISC
- https://github.com/bitcoinjs/tiny-secp256k1/releases/tag/v2.2.5 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-107853 other
- https://github.com/advisories/GHSA-hj9c-qx2w-g7mh other
- https://github.com/bitcoinjs/tiny-secp256k1 package