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

@noverax/courier-express

Latest version: v0.9.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: vgevorgyan
3 Stars
0 Forks
9 Versions
1.2K Downloads
TypeScript Repo language

Scan summary

@noverax/courier-express was last scanned on 28 Nov 2026 at version 0.9.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 9 versions; the latest was published on 28 Nov 2026.
  • Findings: No rules fired in version 0.9.0.
  • Downloads: 1,161 downloads.

Versions

9 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.9.0 LATEST 28 Nov 2026 No rules fired
0.8.0 18 Nov 2026 No rules fired
0.7.1 16 Nov 2026 No rules fired
0.6.0 14 Nov 2026 Not shown
0.5.0 13 Nov 2026 Not shown

No rules fired in 0.9.0

Findings

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

README

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

Overview

The Express adapter runs Courier's proxy as Express middleware: it turns the Node.js request into a Web Request, runs the core handler, and writes the Response back — streamed bodies, uploads and cancelled calls included.

Quick start

In your Express project:

npx @noverax/create-courier

It adds a router on /api/request, a typed example API, Studio and a mock — showing each change to your files before it makes it — installs the packages and type-checks the result. For a new project: npx @noverax/create-courier my-app --framework express. The steps below do the same by hand.

Install

npm install @noverax/courier-express @noverax/courier express

Usage

import express from "express"
import { registerSources } from "@noverax/courier/server"
import { courierHandler } from "@noverax/courier-express"
import { sources } from "./api/sources"

registerSources(sources)

const app = express()

app.all("/api/request", courierHandler())

app.listen(3000, () => {
  console.log("Server running on http://localhost:3000")
})

courierHandler() is zero-arg — sources are read at request time from the core global registry populated by registerSources() (or by attachRuntime() auto-loading courier.config.ts in Studio-instrumented projects). The handler accepts any HTTP method. GET requests are routed to query-type endpoints, POST requests handle mutations and data payloads.

The user's session

An API that keeps the user's session describes it in defineApi, and every call a route makes — through every await — carries the session of the request being served, the cookies the session names and nothing else, once the request is served with it at hand:

import { requestContext } from "@noverax/courier-express"

app.use(requestContext())

The session cookies the API sets reach the browser on the response.

Streaming and WebSockets

import http from "node:http"
import { courierSSEHandler, courierWSAttach } from "@noverax/courier-express"

app.get("/api/sse", courierSSEHandler())

const server = http.createServer(app)
const detach = courierWSAttach(server) // answers upgrades on /api/ws
server.listen(3000)

courierWSAttach answers WebSocket upgrades on one path — /api/ws unless you pass path — and leaves every other path to the application's own WebSocket handlers. Point the client at the same path with proxyPath: { ws: "/api/ws" }. A message larger than maxMessageSize (64 KB by default) is refused with a 4413 error and the connection stays open; a frame larger than 1 MiB, or twice maxMessageSize when that is larger, closes the connection with 1009 before it is buffered. Requires the ws package.

A client whose network lets no WebSocket through — a corporate proxy, an antivirus that inspects TLS, an entry with WebSockets turned off — keeps the same connection over POST requests to that path. courierWSAttach takes them off the server ahead of Express, so none of your body parsers or routes reads them, whichever was added first. With http: false they are yours again, and the client stays on WebSocket.

Shutting down

server.close() waits for every open connection, and an SSE stream or a WebSocket stays open on its own — a stream until its lifetime cap, 30 minutes by default. Drain them first:

const proxy = courierHandler()
const sse = courierSSEHandler()
app.all("/api/request", proxy)
app.get("/api/sse", sse)

process.on("SIGTERM", async () => {
  await Promise.all([proxy.shutdownSSE(), sse.shutdownSSE(), detach()])
  server.close()
})

shutdownSSE() sends each stream's client a courier:shutdown notice that tells it when to reconnect, then ends the streams; sseConnections lists the open ones. detach() refuses new upgrades with 503, closes each WebSocket with 1001, telling it when to come back — which a Courier client answers by reconnecting then — and waits for them up to 5 seconds, then ends each one whose client has not answered, so it settles within that time whatever the clients and Redis do. It carries the handler's connections, stats() and destroy({ timeoutMs }), the same stop with a deadline of your own. The proxy route serves streams too, which is why it drains as well.

Limits

The proxy reads a JSON call up to its maxBodyBytes, 1 MB, and an upload (multipart/form-data) up to maxUploadBytes, 10 MB. Pass others to raise them: courierHandler({ maxUploadBytes: 50 * 1024 * 1024 }). Do not mount a body parser (express.json(), multer) on the proxy route: the handler reads the raw body itself.

How It Works

  1. Converts the Node.js IncomingMessage to a Web Standard Request
  2. Passes it to the core createHandler().handle()
  3. Converts the Web Response back to Node.js ServerResponse

With Frontend

Pair with createProxyCaller on the client:

import { createProxyCaller } from "@noverax/courier/client"
import { routes } from "@noverax/courier/routes"

// The routes Courier's plugin builds from the endpoints you mark .expose():
// what a page may call, under the key the source has in your `sources` map.
const caller = createProxyCaller(routes.api, {
  proxyPath: { http: "/api/request" },
})
const users = await caller.users.getAll()

Or with React Query:

import { createProxyQueryCaller } from "@noverax/courier-react"
import { routes } from "@noverax/courier/routes"

const q = createProxyQueryCaller(routes.api, { proxyPath: { http: "/api/request" } })

The routes come from Courier's plugin in the build that makes the page — the plugin for each build. Pages no bundler builds, as create-courier sets them up on this server, take apiRoutes from courier.routes.ts in place of routes.api, which npx @noverax/courier-cli routes writes from the same marks.

Part of Courier

License

MIT

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 @noverax/courier-express

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

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 (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229