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

tokensafe-backend-node

Latest version: v0.15.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: nekosin4eg
0 Stars
0 Forks
16 Versions
1.1K Downloads
Go Repo language

Scan summary

tokensafe-backend-node was last scanned on 29 Nov 2026 at version 0.15.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 16 versions; the latest 5 were published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.15.0.
  • Downloads: 1,089 downloads.

Versions

16 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.15.0 LATEST 29 Nov 2026 No rules fired
0.14.0 28 Nov 2026 No rules fired
0.13.1 28 Nov 2026 No rules fired
0.13.0 28 Nov 2026 Not shown
0.12.0 28 Nov 2026 Not shown

No rules fired in 0.15.0

Findings

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

README

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

tokensafe-backend-node

OUMV adapter for Node.js and Bun backends — Express, Fastify, Next.js App Router and Elysia — sharing one framework-neutral runtime, so every framework answers the same wire shapes (spec §4) and certifies identically.

npm install tokensafe-backend-node

The Elysia plugin lives on the ./elysia subpath and declares elysia as an optional peer dependency, so a plain Node install never pulls Bun packages:

bun add tokensafe-backend-node

Express

import express from 'express';
import { OumvRuntime, mountTokensafe, tracingMiddleware } from 'tokensafe-backend-node';

const app = express();
const runtime = new OumvRuntime({ workspaceDir: process.cwd() });
app.use(tracingMiddleware(runtime));        // L4 traces for every request
app.get('/api/orders', async () => ({ orders: [] }));
const oumv = mountTokensafe(app, { runtime, publicUrl: 'http://127.0.0.1:3000/__oumv/rpc' });
const server = app.listen(3000);
const ws = oumv.attachWebSocket(server);    // optional, spec §2.4

Fastify

import Fastify from 'fastify';
import { OumvRuntime, registerTokensafe } from 'tokensafe-backend-node';

const app = Fastify();
const oumv = await registerTokensafe(app, { runtime: new OumvRuntime({ workspaceDir: process.cwd() }) });
app.get('/api/orders', async () => ({ orders: [] }));   // captured by the onRoute hook
await app.listen({ port: 3000 });
const ws = oumv.attachWebSocket();

Elysia (Bun)

import { Elysia } from 'elysia';
import { oumv } from 'tokensafe-backend-node/elysia';

const app = new Elysia()
  .get('/api/orders', () => ({ orders: [] }))
  .use(oumv({ authToken: process.env.OUMV_TOKEN, buildCommand: 'bun run build' }));
app.listen(3000);

The plugin mounts POST /__oumv/rpc, GET /__oumv/events (SSE) and the WebSocket upgrade on the same path, reads the composed app's route table in onStart (so L1 is the routes the host actually serves), writes the discovery descriptor with the bound port, and dispatches oumv/verify through app.handle. readOnly: true registers no mutating method (-32601, §8.5).

What it implements

Pillar Behaviour
observe L0 pulse, L1 route surface, L2 route contract, L3 source + sha256 OCC token, L4 trace ring
understand impact from the registered route table, causality from real traces (observed: false + note when there are none)
mutate getSource/applyEdit with mandatory expectedVersion, guarded in the normative order -32003 → -32009 → -32002 → -32011 → -32001; backups under .tokensafe/backups/
verify loopback HTTP dispatch against the live handler with timings/durationMs/scope, and the result feeds the L4 ring
transports HTTP POST + batch, SSE (GET …/events, Last-Event-ID), WebSocket upgrade on /__oumv/rpc, stdio NDJSON
discovery ~/.tokensafe/runtimes/<hash16>.json registry entry (0600, outside the repo), profile-keyed

stdio (headless)

Same runtime, no listener:

tokensafe-oumv-stdio --workspace /path/to/app
tokensafe-oumv-stdio --app ./src/app.js --workspace /path/to/app   # Express or Fastify

One JSON-RPC object per line, responses on stdout, diagnostics on stderr. With --app the module's default export is mounted (routes + in-process verify work); without it, the file-based pillar (observe L3, getSource, applyEdit) still does.

Certification

# Node adapters (Express, Fastify, Next.js) — vitest
CERT_OUT_DIR=../certification OUMV_REPO=../../agent-oumv pnpm test
# Elysia/Bun — the fetch binding, the plugin and the HTTP/SSE/WS certificates
CERT_OUT_DIR=../certification OUMV_REPO=../../agent-oumv bun test test-bun

The fixture suite (owner: tokensafe-dev/oumv) runs over real HTTP against every adapter, over stdio against the shared runtime, and over SSE/WebSocket for the transport certificates. Committed reports live in ../certification/; the Bun adapter also certifies the HTTP, SSE and WS bindings (bun-elysia.json plus transports/bun-elysia-{sse,ws}.json).

Notes: paths are workspace-jailed and credential files are refused; a Node/Bun backend adapter is development-time tooling and must not be exposed publicly without the session token.

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 tokensafe-backend-node

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

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?

Microsoft's Official agent framework Hijacked
AI & VibeSec

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

Frame 2085668439 (1)
Group 1261154229