Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@ledgerhq/hw-app-exchange

Latest version: v0.33.0-nightly.20261128020355

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: gbrahm-ledger, ldg-github-ci, ledger-releaser, phenry-ledger, sergii-shkolin, vbouzon
633 Stars
502 Forks
55 Versions
11.7K Downloads
TypeScript Repo language

Scan summary

@ledgerhq/hw-app-exchange was last scanned on 28 Nov 2026 at version 0.33.0-nightly.20261128020355. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 55 versions; the latest 5 were published within 4 days (25–28 Nov 2026).
  • Findings: No rules fired in version 0.33.0-nightly.20261128020355.
  • Downloads: 11,700 downloads.

Versions

55 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.33.0-nightly.20261128020355 LATEST 28 Nov 2026 No rules fired
0.33.0-nightly.20261127020419 27 Nov 2026 No rules fired
0.33.0-nightly.20261126102211 26 Nov 2026 No rules fired
0.33.0-nightly.20261126020405 26 Nov 2026 Not shown
0.33.0-nightly.20261125083912 25 Nov 2026 Not shown

No rules fired in 0.33.0-nightly.20261128020355

Findings

Findings for v0.33.0-nightly.20261128020355. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.33.0-nightly.20261128020355; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

GitHub, Ledger Devs Discord, Developer Portal

@ledgerhq/hw-app-exchange

[!NOTE] Status: STABLE — Production-ready; API is considered stable.

Ledger Hardware Wallet Exchange app.

API

Table of Contents
  • SwapPayloadFieldExceedsLimit
    • Parameters
  • resolveTransactionType
    • Parameters
  • OkStatus
  • decodePayloadProtobuf
    • Parameters
  • findSwapPayloadSpecViolation
    • Parameters
SwapPayloadFieldExceedsLimit

Extends Error

Thrown when a decoded swap payload field is larger than what the Exchange device app can store. It lets us surface a precise reason (which field, its limit and the actual size) instead of the device's generic DESERIALIZATION_FAILED (0x6a81) status, which is opaque for investigations.

Parameters
resolveTransactionType

Adapt ExchangeTypes following partner info. For "legacy" partner, we don't change the provided type. For new one, we call the new APDU commands (Ng, Next Gen).

Parameters
  • type ExchangeTypes
  • partnerVersion number?

Returns ExchangeTypes

OkStatus

Those values map the one defined in the app-exchange code (@see protocol.md and swap_errors.h)

Type: number

decodePayloadProtobuf

deprecated use decodeSwapPayload instead

Parameters

Returns Promise\

findSwapPayloadSpecViolation

Decodes a raw swap payload (hex or base64) and returns the first field that exceeds the Exchange device app's protobuf size limits as a precise SwapPayloadFieldExceedsLimit, or undefined when everything fits (or the payload cannot be decoded locally).

This is meant to enrich the device's opaque DESERIALIZATION_FAILED (0x6a81) with an actionable reason (e.g. an oversized payin_extra_id) — it must never gate the flow. The device stays the source of truth, so if these (hardcoded) limits ever drift from the app we simply return undefined and keep the device's own error.

nanopb reserves one byte for the NUL terminator on string fields, so their usable content limit is max_size - 1; bytes fields use the full max_size.

Parameters

Returns (SwapPayloadFieldExceedsLimit | undefined)

Integration test

1. Prerequisite

Download latest version of Ledger SDK.

docker pull ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest

The rest of the documentation is about testing on NanoSP.

2. Compile app-exchange
docker run --privileged -v '<ABSOLUTE_PATH_TO_APP_EXCHANGE_SRC>:/app' -t -d --name ledger-app-dev-tools ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools

docker exec -it ledger-app-dev-tools bash -c 'export BOLOS_SDK="$<NANO_SDK>" && make -j DEBUG=1 TESTING=1 TEST_PUBLIC_KEY=1'

With <NANO_SDK> possible value:

  • NanoS: NANOS_SDK
  • NanoS+: NANOSP_SDK
  • NanoX: NANOX_SDK
  • Stax: STAX_SDK
  • Flex: FLEX_SDK

It is important to set the value of DEBUG to 1, as we need the fake Ledger private key in our test.

3. Launch speculos

You can compile only the app-exchange, but it can be useful to compile a coin-app like app-ethereum.

In the documentation, we assume the following name for the apps binary:

  • app-exchange: exchange_nanosp.elf
  • app-ethereum: ethereum_nanosp.elf
docker run -v '<ABSOLUTE_PATH_TO_ELFS>:/app' -p 5000:5000 -t -d --name speculos ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools

docker exec -it speculos bash -c 'speculos --model "nanosp" /app/exchange_nanosp.elf -l /app/ethereum_nanosp.elf --display headless'
4. Launch integration tests

From Ledger Live root directory:

pnpm ljs:hw-app-exchange test-integ

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @ledgerhq/hw-app-exchange

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229