{"id":"CVE-2026-107853","summary":"tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak","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 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.","aliases":["GHSA-hj9c-qx2w-g7mh"],"modified":"2026-11-18T17:45:20.651928673Z","published":"2026-11-17T19:23:43.255Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107853.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-252"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/107xxx/CVE-2026-107853.json"},{"type":"FIX","url":"https://github.com/bitcoinjs/tiny-secp256k1/commit/ba1af1fceea95967a172c6438ed9302730bb7c01"},{"type":"WEB","url":"https://github.com/bitcoinjs/tiny-secp256k1/releases/tag/v2.2.5"},{"type":"ADVISORY","url":"https://github.com/bitcoinjs/tiny-secp256k1/security/advisories/GHSA-hj9c-qx2w-g7mh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-107853"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bitcoinjs/tiny-secp256k1","events":[{"introduced":"59fb825b6d68f5f7174807f54a231c31e9294aa5"},{"fixed":"aab0155201a66f84297f75edd2fbde6013f37b38"},{"introduced":"5726c24b5a1c8d19c784dd51401de5054f8a52fb"},{"fixed":"aab0155201a66f84297f75edd2fbde6013f37b38"},{"fixed":"ba1af1fceea95967a172c6438ed9302730bb7c01"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"2.1.0"},{"fixed":"2.2.5"}]},{"range":[{"introduced":"2.2.2"},{"fixed":"2.2.5"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"ba1af1fceea95967a172c6438ed9302730bb7c01"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v2.2.5","range":[{"fixed":"aab0155201a66f84297f75edd2fbde6013f37b38"}],"source":"REFERENCES_TAG"}]}}],"versions":["v2.2.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-107853.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}