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

mppx

Latest version: v0.0.0-main-20261123174233

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: awkweb, brendan_j_ryan, jmoxey
194 Stars
77 Forks
236 Versions
1.9M Downloads
TypeScript Repo language

Scan summary

mppx was last scanned on 23 Nov 2026 at version 0.0.0-main-20261123174233. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 236 versions; the latest 5 were published within 5 days (19–23 Nov 2026).
  • Findings: No rules fired in version 0.0.0-main-20261123174233.
  • Downloads: 1,910,692 downloads.

Versions

236 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.0-main-20261123174233 LATEST 23 Nov 2026 No rules fired
0.0.0-main-20261121174548 21 Nov 2026 No rules fired
0.0.0-main-20261120121908 20 Nov 2026 No rules fired
0.0.0-main-20261120110604 20 Nov 2026 Not shown
0.21.1 19 Nov 2026 Not shown

No rules fired in 0.0.0-main-20261123174233

Findings

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

Known vulnerabilities

5 CVEs · last 22 Sep 2026

1 CRITICAL 1 HIGH 3 MEDIUM 0 LOW

Versions

  • ≥ 0.8.2
  • ≥ 0.4.11, < 0.8.2 2 MEDIUM
  • ≥ 0.4.8, < 0.4.11 1 HIGH 3 MEDIUM
  • < 0.4.8 1 CRITICAL 1 HIGH 3 MEDIUM

Vulnerabilities

  • CVE-2026-63628 Medium 22 Sep 2026 mppx: Gas Draining with access list Fixed in 0.8.2
  • CVE-2026-63627 Medium 22 Sep 2026 mppx: Gas Draining with padding Fixed in 0.8.2
  • CVE-2026-34210 Medium 31 Mar 2026 mppx has Stripe charge credential replay via missing idempotency check Fixed in 0.4.11
  • CVE-2026-34209 High 31 Mar 2026 mppx: Tempo has a session close voucher bypass vulnerability due to settled amount equality Fixed in 0.4.11
  • GHSA-8X4M-QW58-3PCX Critical 29 Mar 2026 mppx has multiple payment bypass and griefing vulnerabilities Fixed in 0.4.8

README

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


Documentation

Full documentation, API reference, and guides are available at mpp.dev/sdk/typescript.

Contributors changing Tempo sessions should read the session design before altering credential, recovery, accounting, or transport behavior.

Install

npm i mppx

Quick Start

Server
import { Mppx, tempo } from 'mppx/server'

const mppx = Mppx.create({
  methods: [
    tempo({
      recipient: '0x742d35Cc6634c0532925a3b844bC9e7595F8fE00',
    }),
  ],
  secretKey: process.env.MPP_SECRET_KEY!,
})

export async function handler(request: Request) {
  const response = await mppx.charge({ amount: '1' })(request)

  if (response.status === 402) return response.challenge

  return response.withReceipt(Response.json({ data: '...' }))
}

Generate MPP_SECRET_KEY with at least 32 bytes, for example: openssl rand -base64 32.

Client
import { Mppx, tempo } from 'mppx/client'
import { privateKeyToAccount } from 'viem/accounts'

Mppx.create({
  methods: [tempo({ account: privateKeyToAccount('0x...') })],
})

// Global fetch now handles 402 automatically
const res = await fetch('https://mpp.dev/api/ping/paid')

Examples

Example Description
charge Payment-gated photo generation API
charge-wagmi Payment-gated charge with Wagmi + React
session/multi-fetch Multiple paid requests over a single payment channel
session/sse Pay-per-token LLM streaming with SSE
stripe Stripe SPT charge with automatic client
npx gitpick wevm/mppx/examples/charge

CLI

mppx includes a basic CLI for making HTTP requests with automatic payment handling. Tempo session channels are retained and reused automatically until you close them.

# create account - stored in keychain, autofunded on testnet
mppx account create

# make request - automatic payment handling, curl-like api
mppx example.com

# pay an x402 offer on a server that advertises both protocols
mppx example.com --protocol x402

# open another session instead of reusing the preferred channel
mppx example.com --session new

# inspect and close retained sessions
mppx sessions list
mppx sessions view <channel-id>
mppx sessions close <channel-id>
mppx sessions close --all --yes

# explicitly trust a custom session escrow advertised by the server
mppx example.com -M allowCustomEscrow=true

mppx stripe address creates a Stripe crypto deposit address for stripe.create({ depositAddresses }) and prints only the address:

mppx stripe address                     # print a new Tempo address
mppx stripe address --env               # write TEMPO_DEPOSIT_ADDRESS to ./.env instead
mppx stripe address -n base --env .env.local
mppx stripe address --json              # id, livemode, network and supported tokens too

The key comes from --secret-key, then STRIPE_SECRET_KEY, then the Stripe CLI's login (stripe login; --project-name or STRIPE_PROJECT_NAME picks the project, --live its live key). The Stripe CLI logs in with a restricted key (rk_...); if Stripe refuses it for deposit addresses, pass a secret key with --secret-key.

--session auto is the default. Pass new to open another channel or a channel ID to select one explicitly.

Tempo session clients accept only the canonical escrow contract by default. A server may advertise its configured custom escrow in the payment challenge, but the client rejects it unless -M allowCustomEscrow=true is supplied. This opt-in trusts the server-selected address; clients that do not support custom escrows should leave it unset. See the session escrow trust documentation.

--protocol auto is the default: MPP is preferred when available, and x402 is used otherwise. Pass mpp or x402 to require one protocol. x402 payments use the same EVM account as EVM charges, so MPPX_PRIVATE_KEY or a stored account works for both.

Payment extensions can enforce policy or prepare funds after challenge selection and confirmation, immediately before credential creation:

import { defineConfig, Extension } from 'mppx/cli'

export default defineConfig({
  extensions: [
    Extension.from({
      async preparePayment({ challenge }) {
        await prepareFunds(challenge)
      },
    }),
  ],
})

Extensions run in configuration order. Throwing rejects the payment before Mppx signs it.

You can also install globally to use the mppx CLI from anywhere:

npm i -g mppx

Payments Proxy

mppx exports a Proxy server handler so that you can create or define a 402-protected payments proxy for any API.

import { openai, stripe, Proxy } from 'mppx/proxy'
import { Mppx, tempo } from 'mppx/server'

const mppx = Mppx.create({
  methods: [tempo()],
  secretKey: process.env.MPP_SECRET_KEY!,
})

const proxy = Proxy.create({
  services: [
    openai({
      apiKey: 'sk-...',
      routes: {
        'POST /v1/chat/completions': mppx.charge({ amount: '0.05' }),
        'POST /v1/completions': mppx.tempo.session({
          amount: '0.0001',
          unitType: 'token',
        }),
        'GET /v1/models': true,
      },
    }),
    stripe({
      apiKey: 'sk-...',
      routes: {
        'POST /v1/charges': mppx.charge({ amount: '0.01' }),
        'GET /v1/customers/:id': true,
      },
    }),
  ],
})

createServer(proxy.listener) // Node.js
Bun.serve(proxy) // Bun
Deno.serve(proxy.fetch) // Deno
app.use(proxy.listener) // Express
app.all('*', (c) => proxy.fetch(c.req.raw)) // Hono
app.all('*', (c) => proxy.fetch(c.request)) // Elysia
export const GET = proxy.fetch // Next.js
export const POST = proxy.fetch // Next.js

This exposes the following routes:

Route Pricing
POST /openai/v1/chat/completions charge $0.005
POST /openai/v1/completions session $0.0001 per token
GET /openai/v1/models free
POST /stripe/v1/charges charge $0.01
GET /stripe/v1/customers/:id free

Protocol

Built on the "Payment" HTTP Authentication Scheme. See mpp-specs for the full specification.

License

MIT

Accepted Tempo currencies

tempo(), tempo.charge(), tempo.session(), and tempo.subscription() offer OUSD first, followed by USDC.e on mainnet or pathUSD on Moderato (testnet: true). Each factory returns a group accepted directly by Mppx.create. Clients choose one offer; ordering does not trigger an automatic swap.

import { Mppx, tempo } from 'mppx/server'
import { ousd, usdce } from 'viem/tokens'

const mppx = Mppx.create({
  methods: [
    tempo.charge({
      currencies: [ousd, usdce],
      recipient: '0x742d35Cc6634c0532925a3b844bC9e7595F8fE00',
    }),
  ],
})

Omit currencies for the network defaults, or use currencies: [ousd] to accept only OUSD on mainnet. Explicit lists replace the defaults. The deprecated currency option also restricts acceptance to one token. Wire requests and handler overrides continue to use singular currency.

Use configured handlers such as mppx.tempo.charge when composing payments. Code that directly inspects a Method can destructure the group: const [charge] = tempo.charge({ currencies: [ousd] }). Existing sessions and subscriptions continue using their originally authorized currency.

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 mppx

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

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