Unchecked Return Value Affecting @bitcoin-js/tiny-secp256k1-asmjs package, versions >=2.2.2 <2.2.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.44% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-BITCOINJSTINYSECP256K1ASMJS-22606132
  • published19 Nov 2026
  • disclosed17 Nov 2026
  • credit0xaudron, Ali Kalout

Introduced: 17 Nov 2026

NewCVE-2026-107853  (opens in a new tab)
CWE-252  (opens in a new tab)

How to fix?

Upgrade @bitcoin-js/tiny-secp256k1-asmjs to version 2.2.5 or higher.

Overview

@bitcoin-js/tiny-secp256k1-asmjs is an A tiny secp256k1 JS

Affected versions of this package are vulnerable to Unchecked Return Value via the three-argument form of xOnlyPointAddTweakCheck in index.ts, which ignores the failure return value from the wasm backend when a tweak produces the point at infinity. The shared X_ONLY_PUBLIC_KEY_INPUT buffer is left unchanged after the failed call, still holding the original point, so a caller who passes resultToCheck equal to that point causes the stale-buffer comparison to return true even though no valid tweaked key exists. Protocols that rely on this helper to validate caller-controlled internal keys, tweaks, and comparison values can therefore accept an invalid derived key.

CVSS Base Scores

version 4.0
version 3.1