{"id":"CVE-2026-107853","aliases":["GHSA-hj9c-qx2w-g7mh"],"title":"tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak","originalDescription":"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.","severity":{"cvss":6.3,"vector":"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","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00462,"percentile":0.41723},"exploitDb":null},"affected":[{"ecosystem":"npm","name":"@bitcoin-js/tiny-secp256k1-asmjs","range":">= 2.2.2, < 2.2.5","fixed":"2.2.5"},{"ecosystem":"npm","name":"@bitcoin-js/tiny-secp256k1-asmjs","range":">=2.2.2, <2.2.5","fixed":"2.2.5"},{"ecosystem":"npm","name":"tiny-secp256k1","range":">= 2.1.0, < 2.2.5","fixed":"2.2.5"},{"ecosystem":"npm","name":"tiny-secp256k1","range":">=2.1.0, <2.2.5","fixed":"2.2.5"}],"references":[{"url":"https://github.com/bitcoinjs/tiny-secp256k1/security/advisories/GHSA-hj9c-qx2w-g7mh","type":"x_refsource_CONFIRM"},{"url":"https://github.com/bitcoinjs/tiny-secp256k1/commit/ba1af1fceea95967a172c6438ed9302730bb7c01","type":"x_refsource_MISC"},{"url":"https://github.com/bitcoinjs/tiny-secp256k1/releases/tag/v2.2.5","type":"x_refsource_MISC"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107853","type":"other"},{"url":"https://github.com/advisories/GHSA-hj9c-qx2w-g7mh","type":"other"},{"url":"https://github.com/bitcoinjs/tiny-secp256k1","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-18T17:36:56.049Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107853","license":"NVD terms of use","firstSeenAt":"2026-11-17T20:42:38.415Z"},{"name":"osv","at":"2026-11-19T23:23:26.069Z","url":"https://osv.dev/vulnerability/GHSA-hj9c-qx2w-g7mh","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T23:23:26.069Z"},{"name":"ghsa","at":"2026-12-06T23:40:48.571Z","url":"https://github.com/advisories/GHSA-hj9c-qx2w-g7mh","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T22:51:35.654Z"},{"name":"cvelistV5","at":"2026-11-19T21:46:29.723Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-107853","license":"CVE Terms of Use","firstSeenAt":"2026-11-17T19:34:00.816Z"}],"firstSeenAt":"2026-11-17T19:34:00.816Z","publishedAt":"2026-11-17T19:23:43.255Z","modifiedAt":"2026-11-19T23:00:36.643Z"}