Skip to content
Threat Brief

← All advisories

CVE-2026-107853

Medium 6.3No known exploitationFix available

tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak

Vendor advisory: GHSA-hj9c-qx2w-g7mh

Record last updated

CVSS score

6.3

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.3%

Higher than 22% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-252

Patching and mitigation

Patch status
Fix available (source: GitHub Advisory Database)
Fix documented (source date)
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
@bitcoin-jsiny-secp256k1-asmjs>= 2.2.2, < 2.2.5Not documentedCVE Program
bitcoinjstiny-secp256k1>= 2.1.0, < 2.2.5Not documentedCVE Program
npm@bitcoin-js/tiny-secp256k1-asmjsfrom 2.2.2 before 2.2.52.2.5GitHub Advisory Database
npmtiny-secp256k1from 2.1.0 before 2.2.52.2.5GitHub Advisory Database

Timeline

  1. Disclosure

    CVE record published by GitHub_M

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by GitHub Advisory Database

    Source: GitHub Advisory Database (opens in a new tab)

Vendor guidance and references