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

@anywalletkit/protocol-swap2-cctp

Latest version: v0.6.2

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: ultratestbro
7 Stars
0 Forks
21 Versions
4.5K Downloads
TypeScript Repo language

Scan summary

@anywalletkit/protocol-swap2-cctp was last scanned on 30 Nov 2026 at version 0.6.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 21 versions; the latest was published on 30 Nov 2026.
  • Findings: No rules fired in version 0.6.2.
  • Downloads: 4,500 downloads.

Versions

21 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.2 LATEST 30 Nov 2026 No rules fired
0.6.1 23 Nov 2026 No rules fired
0.6.0 19 Nov 2026 No rules fired
0.5.9 17 Nov 2026 Not shown
0.5.8 17 Nov 2026 Not shown

No rules fired in 0.6.2

Findings

Findings for v0.6.2. 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.6.2; other versions have their own rules, not their own score.

README

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

@anywalletkit/protocol-swap2-cctp

npm

Circle CCTP V2 as a swap2 provider: native USDC between EVM chains by burn-and-mint — no spread, no aggregator fee; Fast Transfer costs the fee Circle publishes per pair (around 1 bps), Standard is free and waits for source finality.

Install

npm install @anywalletkit/protocol-swap2-cctp @anywalletkit/core
# or: pnpm add @anywalletkit/protocol-swap2-cctp @anywalletkit/core  ·  yarn add @anywalletkit/protocol-swap2-cctp @anywalletkit/core

On npm: @anywalletkit/protocol-swap2-cctp, published from the release workflow with provenance.

CCTP is two-phase. depositForBurn on the source chain burns the USDC; Circle's attestation service signs the message; receiveMessage(message, attestation) on the destination mints — and that second transaction is the user's own, paid in the destination chain's gas. The swap2 engine learned this with the package:

import {cctpProvider} from "@anywalletkit/protocol-swap2-cctp/provider";
import {RouterSwap2Protocol} from "@anywalletkit/protocol-swap2-router/swap2/router";

const swap2 = new RouterSwap2Protocol(baseAccount, {fromChain: "eip155:8453", providers: [cctpProvider({rpcUrls})]});
const res = await swap2.swap2({fromToken: "USDC", toToken: "USDC", toChain: 42161, fromTokenAmount: 10_000_000n, minAmountOut: 9_998_570n});
// … poll …
const status = await swap2.getSwap2Status(res.id);   // "pending" → "action-required" once Circle attested
if (status.status === "action-required") {
  const claimed = await swap2.claimSwap2(res.id, arbitrumAccount);   // receiveMessage on Arbitrum, signed there
  await swap2.getSwap2Status(claimed.id);   // this id carries the claim hash and, once the account saw it succeed, "completed" even without an Arbitrum RPC
}

claimSwap2(id, destinationAccount) is on every swap2 protocol (router or single-provider); providers opt in with buildClaim(ref), which returns the destination transaction or null while the attestation is pending. IntentStatus.claim = {chain, ready} tells the app which chain the claim lives on. The remote provider forwards it as the claim action.

The engine sends a claim only to a contract the provider declares for that chain (claimTargets; CCTP: its MessageTransmitter) and refuses calldata that moves the account's tokens or grants an allowance. A remote stub takes the list from the app, never from the server:

remoteProvider({name: "cctp", baseUrl, ...cctpPins})   // cctpPins from this package: TokenMessenger + MessageTransmitter

cctpPins also pins the burn: the TokenMessenger is the only contract the source leg may call and approve, and cctpVerifyQuote decodes the server's depositForBurn on the device — the input amount, the destination domain, the recipient as mintRecipient, the source USDC, no destination caller, and a maxFee that leaves the quoted minimum. Without the pins the engine refuses the stub's EVM routes.

What the provider does

  • Two routes, routeId: "fast" and "standard". Fast costs Circle's fee and lands in seconds to minutes; Standard is free and waits for the source's hard finality. getQuotes returns both where the pair has both, so a route list (the router's getQuotes, an app's picker) shows the free, slower one next to the fast one; with the router's default tie band the fee (about 1 bps) leaves both at the same price, so Fast stays the pick and Standard is the user's choice. A picked route is quoted or refused, never swapped (a "fast" request with the Fast allowance used up is refused, not sent as Standard). Through a server: remoteProvider({name: "cctp", baseUrl, multiQuotes: true, ...cctpPins}); cctpVerifyQuote refuses a quote whose routeId is not its burn's threshold.
  • How long Standard takes (Circle's published averages, the ETA uses the upper end plus the claim): Ethereum, Arbitrum, Base, OP Mainnet, Unichain, World Chain, Plume and X Layer 15–19 min; Ink and Morph ~30 min; Linea 6–32 h; Avalanche, Polygon PoS, Sonic, Monad, Sei, HyperEVM, Plasma and Arc a few seconds (these offer no Fast Transfer as a source, so Standard is their only route and costs nothing).
  • Mode auto (default) offers both routes and, without a routeId, takes Fast when the pair offers it and Circle's Fast allowance covers the amount, else Standard; fast / standard keep one route only. Fees come from GET /v2/burn/USDC/fees/{src}/{dst} (bps), the allowance from GET /v2/fastBurn/USDC/allowance.
  • Output is guaranteed: maxFee in the calldata = published fee + a 10 % buffer (feeBufferPct), and Circle can deduct at most maxFee; the quote's minDestAmount is amount − maxFee. The unused buffer is never charged.
  • Calldata is sealed in the quote (recipient, native USDC of the source domain, destination domain, maxFee, finality threshold) and the engine executes exactly that; approvalAddress is the TokenMessengerV2.
  • Preflight with an RPC (rpcUrls): the TokenMessengerV2 the calldata targets must point at the expected MessageTransmitterV2, whose localDomain() must be the source domain, and getMinFeeAmount(amount) must fit maxFee. Without an RPC the on-chain check is skipped.
  • Tracking: GET /v2/messages/{src}?transactionHash= → pending while confirmations accrue, action-required once status: complete with the attestation, completed once the destination's usedNonces(nonce) is set. Without the destination chain in rpcUrls, completed comes from the id claimSwap2 returns when the destination account's waitForTransaction saw the claim succeed (destTxConfirmed: a successful receiveMessage is the mint, since it reverts once the nonce is used); a bare claim hash stays pending, with the hash in destTxHash. A destination RPC that does not show the mint of a confirmed claim yet reads pending, not action-required.
  • Claim: receiveMessage(message, attestation) on the destination MessageTransmitterV2; the attested message must belong to the route's domains. An expired Fast message (expirationBlock passed) is sent to POST /v2/reattest/{nonce} and reported not-ready until Circle re-signs.
  • Domains: 17 EVM chains (Ethereum, Avalanche, OP, Arbitrum, Base, Polygon, Unichain, Linea, Sonic, World Chain, Monad, Sei, HyperEVM, Ink, Plume, Plasma, X Layer), the same TokenMessengerV2 / MessageTransmitterV2 on all of them, and each domain's native USDC. Chains whose catalog USDC is not Circle's (BSC, Gnosis USDC.e) are refused. Solana (domain 5) is not executed here yet: the engine runs calldata on EVM only.

Gas estimate

Quotes carry no gasEstimate: depositForBurn is built on the device and Circle's API (fees, attestations) names no gas for it. txRequest.gasLimit is a fixed bound of 200 000 (a depositForBurn runs ~110 000–150 000), not an estimate.

Tests

pnpm test — provider tests over a fake Circle API + fake JSON-RPC (fee maths, calldata binding, mode fallbacks, preflight refusals, the whole pending → action-required → completed lifecycle, claim building, expiry / re-attestation) and the conformance suite; the engine's claimSwap2 has its own tests in protocol-swap2-core. pnpm verify:live quotes USDC Base → Arbitrum $10 in both modes against the live API and preflights on Base.

Status

2026-10-10: built, tests green, live quote + preflight verified. No funded transfer yet (plan: $10 USDC Base → Arbitrum, Fast and Standard, with the claim from the phone).

Activity

describeActivity(tx, ctx) (on the provider; the protocol class and the router delegate to it) recognizes both halves of a CCTP V2 transfer on every domain in config.ts, by contract + 4-byte selector:

Call Contract Kind Title
depositForBurn(uint256,uint32,bytes32,address,bytes32,uint256,uint32) 0x8e0250ee TokenMessengerV2 bridge "Bridged USDC"
receiveMessage(bytes,bytes) 0x57ecfd28 MessageTransmitterV2 bridge "Received USDC via CCTP"

Assets come from the owner's net transfers (the burn leaves the wallet; the mint lands on the mintRecipient even when a relayer paid the claim). Subtitle CCTP · <chain>, counterparty = the contract called. The other leg's hash is only known through the kit's intent journal / Circle's attestation API, so related stays empty. Fixtures in fixtures/activity/ are public Ethereum transactions (two burns, two claims) plus negatives (a LI.FI bridge, a THORChain deposit); the conformance suite runs them through describeActivity.

blockNumber

QuoteParams.blockNumber (one block for a comparison round) is not supported: the fee comes from Circle's API, so the quote names no block (Quote.blockNumber absent).

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 @anywalletkit/protocol-swap2-cctp

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229