nday
CVE-2026-107853 GHSA-hj9c-qx2w-g7mh

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

bitcoinjs / tiny-secp256k1 · @bitcoin-js / iny-secp256k1-asmjs

Patch on record 2 days after disclosure. Patched: fixed in tiny-secp256k1 2.2.5 and @bitcoin-js/tiny-secp256k1-asmjs 2.2.5. None of the four PoC sources lists it. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

remote, unauthenticated
AV:N, PR:N, UI:N in 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 (CVSS 4.0) from the CNA GitHub_M
network
AV:N in 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 (CVSS 4.0) from the CNA GitHub_M
no authentication required
PR:N in 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 (CVSS 4.0) from the CNA GitHub_M
no user interaction
UI:N in 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 (CVSS 4.0) from the CNA GitHub_M
npm
GHSA-hj9c-qx2w-g7mh: npm packages @bitcoin-js/tiny-secp256k1-asmjs, tiny-secp256k1
stage
PAT
disclosed
disclosure → patch
T+2d
cvss
6.3 MEDIUM v4.0

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
11-17T19:23Z
PATpatch
11-19T23:01Z
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no target-specific security measures to get around
Attack requirements AT:P
Present: success depends on specific deployment or execution conditions, such as a race condition, a non-default setting or a position on the network path
Privileges required PR:N
None: no account or authorization needed
User interaction UI:N
None: no action by anyone other than the attacker

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

CVSS 4.0 vector from the CVE record, scored by the CNA GitHub_M.

Event log

+DISdisclosed

CVE record published by GitHub_M. CVSS 6.3, medium. CISA's SSVC assessment rates exploitation as poc.

src cvelist · nday , observed live · raw
{
  "id": 476904,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-107853",
  "occurred_at": "2026-11-17T19:23:43.255Z",
  "observed_at": "2026-11-17T20:03:12.564625Z",
  "is_backfill": false,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "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",
      "version": "4.0",
      "base_score": 6.3,
      "base_severity": "MEDIUM"
    },
    "ssvc": {
      "timestamp": "2026-11-18T16:41:35.251650Z",
      "automatable": "no",
      "exploitation": "poc",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-17T19:23:43.255Z",
    "assigner_short_name": "GitHub_M"
  }
}
no source time; observed live by nday
+PATpatch released

The advisory gives fixed versions tiny-secp256k1 2.2.5 and @bitcoin-js/tiny-secp256k1-asmjs 2.2.5. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa GHSA-hj9c-qx2w-g7mh · nday , observed live · raw
{
  "id": 489252,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-hj9c-qx2w-g7mh",
  "occurred_at": null,
  "observed_at": "2026-11-19T23:01:42.561574Z",
  "is_backfill": false,
  "dedupe_key": "GHSA-hj9c-qx2w-g7mh",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 0.0,
        "vector_string": null
      },
      "cvss_v4": {
        "score": 6.3,
        "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/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"
      }
    },
    "cwes": [
      {
        "name": "Unchecked Return Value",
        "cwe_id": "CWE-252"
      }
    ],
    "ghsa_id": "GHSA-hj9c-qx2w-g7mh",
    "packages": [
      {
        "name": "tiny-secp256k1",
        "ecosystem": "npm",
        "first_patched_version": "2.2.5",
        "vulnerable_version_range": ">= 2.1.0, < 2.2.5"
      },
      {
        "name": "@bitcoin-js/tiny-secp256k1-asmjs",
        "ecosystem": "npm",
        "first_patched_version": "2.2.5",
        "vulnerable_version_range": ">= 2.2.2, < 2.2.5"
      }
    ],
    "severity": "medium",
    "references": [
      "https://github.com/bitcoinjs/tiny-secp256k1/security/advisories/GHSA-hj9c-qx2w-g7mh",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-107853",
      "https://github.com/bitcoinjs/tiny-secp256k1/commit/ba1af1fceea95967a172c6438ed9302730bb7c01",
      "https://github.com/bitcoinjs/tiny-secp256k1/releases/tag/v2.2.5",
      "https://github.com/advisories/GHSA-hj9c-qx2w-g7mh"
    ],
    "fix_commit_urls": [
      "https://github.com/bitcoinjs/tiny-secp256k1/commit/ba1af1fceea95967a172c6438ed9302730bb7c01"
    ],
    "github_reviewed_at": "2026-11-19T22:43:45Z",
    "advisory_updated_at": "2026-11-19T22:43:46Z",
    "source_code_location": "https://github.com/bitcoinjs/tiny-secp256k1",
    "advisory_published_at": "2026-11-19T22:43:45Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.