# CVE-2026-107853: tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-17T19:23:43.255Z
- Modified: 2026-11-19T23:00:36.643Z
- Also known as: GHSA-hj9c-qx2w-g7mh
- Weaknesses: CWE-252
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- bitcoinjs tiny-secp256k1: >= 2.1.0, < 2.2.5
- @bitcoin-js iny-secp256k1-asmjs: >= 2.2.2, < 2.2.5
- tiny-secp256k1 (npm): from 2.1.0 before 2.2.5
- @bitcoin-js/tiny-secp256k1-asmjs (npm): from 2.2.2 before 2.2.5

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/bitcoinjs/tiny-secp256k1/security/advisories/GHSA-hj9c-qx2w-g7mh> (exploit, web)
- <https://github.com/bitcoinjs/tiny-secp256k1/commit/ba1af1fceea95967a172c6438ed9302730bb7c01> (web)
- <https://github.com/bitcoinjs/tiny-secp256k1/releases/tag/v2.2.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-107853> (advisory)
- <https://github.com/bitcoinjs/tiny-secp256k1> (package)

## Sources

- CVE List: [CVE-2026-107853](https://www.cve.org/CVERecord?id=CVE-2026-107853), CVE Terms of Use, modified 2026-11-18
- GitHub Advisory Database: [GHSA-hj9c-qx2w-g7mh](https://github.com/advisories/GHSA-hj9c-qx2w-g7mh), CC-BY-4.0, modified 2026-11-19
- NVD: [CVE-2026-107853](https://nvd.nist.gov/vuln/detail/CVE-2026-107853), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-107853 · Whole record: https://cve.day/CVE-2026-107853.json · Rebuilt by cve.day 2026-11-25T22:59:51.022Z
