CVE-2026-107853
published medium CVSS 4.0 · 6.3tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| bitcoinjs | tiny-secp256k1 | >= 2.1.0, < 2.2.5 (affected) | GitHub_M · cna |
| @bitcoin-js | iny-secp256k1-asmjs | >= 2.2.2, < 2.2.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-252 CWE-252: Unchecked Return Value
References
3Provider assertions
2GitHub_M · cna
tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a3bdb1925d87f6ee24f3412167c5b40ea8ad06ae86ffce3f397d0cec225407eb
- Ingested
- 18 Nov 2026, 16:46:18 UTC
- Source record
- Official CVE record