Security mailing lists by PureSourceCode

CVE-2026-107853

MEDIUM 6.3CVSS 4.0

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

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.

Published
17 Nov 2026
Last modified
19 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Received
Weakness
CWE-252
Also known as
GHSA-hj9c-qx2w-g7mh
Sources
NVDJSONOSV GHSA-hj9c-qx2w-g7mhJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 MEDIUM 6.3 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
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm tiny-secp256k1 >= 2.1.0, < 2.2.5 2.2.5
OSV npm @bitcoin-js/tiny-secp256k1-asmjs >= 2.2.2, < 2.2.5 2.2.5

References

History

  • 25 Nov 2026 21:23 UTC · NVD: first stored (published 17 Nov 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.