CVE-2026-107853
Description
tiny-secp256k1 2.1.0-2.2.4: the 3-arg xOnlyPointAddTweakCheck discarded the wasm failure return and compared the stale input buffer — a tweak landing on the point at infinity (n-1 over G) leaves the buffer holding the input, so resultToCheck === point returns TRUE for an invalid derivation. npm 2.2.4 vs 2.2.5 (ba1af1fc): true vs false
CVE-CVE-2026-107853 Details
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...
Related PoCs for CVE-2026-107853
No other PoCs found for this CVE.