Scan your whole stack
From OX Research Newsroom
Are you using authbypass-probe?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.1.1
authbypass-probe was last scanned on 27 Nov 2026 at version 1.1.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.1.1 LATEST | 27 Nov 2026 | No rules fired |
| 1.1.0 | 27 Nov 2026 | No rules fired |
| 1.0.2 | 27 Nov 2026 | No rules fired |
| 1.0.1 | 27 Nov 2026 | Not shown |
| 1.0.0 | 27 Nov 2026 | Not shown |
Findings for v1.1.1. 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 1.1.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Find out if an oddly spelled URL can walk past your auth middleware.
Many apps protect routes with path-based middleware, like app.use('/admin/*', auth). That only works if the framework matches the middleware and the handler to the same path. When it doesn't, /admin/secret is denied but /admin/secret%0A or /admin//secret quietly reaches the handler with no login. Hono shipped fixes for several bugs like this in November 2026.
authbypass-probe takes the routes you say must be protected, tries about 30 hostile spellings of each one, and fails your build if any of them gets through without credentials.
GET /admin/secret -> 401 denied, as expected
GET /admin/secret/ -> 200 BYPASS: the handler answered with no login
GET /admin/secret%0A -> 200 BYPASS
GET /admin//secret -> 200 BYPASS
Status: first stable release (1.0). It works, but only 10 of its 30 checks are reproduced against a known-vulnerable version; the rest are described in Checks.
Yes, if you run a Node server on one of these and protect routes by URL path:
| Framework | Notes |
|---|---|
| Hono | |
| Fastify | |
| NestJS | Express platform |
| Express | |
Plain Node http |
A (req, res) handler |
| Expo Router | Expo's server (API routes) |
It also works on any other running server (any language or framework) with --target http://localhost:3000.
It won't help if:
You need Node 22 or newer.
1. Install it in the project you want to test:
npm install --save-dev authbypass-probe
Or try it once without installing: npx authbypass-probe run ....
2. List the routes that must deny anonymous requests in routes.yaml:
routes:
- path: /admin/users
expect: deny
- path: /api/billing
method: POST # default is GET
expect: deny
Use real paths (/api/acme/settings, not /api/:tenant/settings).
3. Give it your app. Your app must be created but not started: export it from a file, and keep listen() in a separate file. Most projects already split app.ts from server.ts.
// app.ts
export const app = new Hono() // or express(), a Fastify instance, a Nest app...
4. Run it:
npx probe run \
--routes routes.yaml --adapter hono --entry ./dist/app.js
Replace hono with fastify, nest, express, node or expo.
Already have a server running? Skip step 3:
probe run --routes routes.yaml --target http://localhost:3000
A report and an exit code. A failing run prints Markdown like this:
FAIL: 12 bypass(es)
| Route | Mutation | Status | Repro | Why |
| GET /admin/secret | trailing-slash | 200 | GET /admin/secret/ | general class |
| GET /admin/secret | line-terminator-lf-suffix | 200 | GET /admin/secret%0A | GHSA-h7mg-cq63-vhpq (reproduced) |
Each row has the route, the check that got through, the status, a request line you can paste into curl, and why that check exists.
| Exit code | Meaning | What to do |
|---|---|---|
| 0 | Clean | Nothing |
| 1 | A bypass was found | Fix the app, then re-run |
| 2 | Nothing was proven | See Troubleshooting |
| 64 | Bad arguments or route file | Fix the command or file; errors name the line |
| 65 | Your app couldn't be loaded or started | Check --entry and --adapter |
| 66 | The report file couldn't be written | Check the --out path |
Use the exit code to block a merge: any CI system works, since non-zero fails the step.
A run that probes nothing exits 2 on purpose: an empty route list is not a pass.
import { expectNoBypass } from 'authbypass-probe/testing'
it('has no auth bypass', async () => {
await expectNoBypass({
app, // created, not started
routes: [{ path: '/admin/secret', expect: 'deny' }], // or a path to routes.yaml
})
})
If anything gets through, the test fails with one readable line per problem:
BYPASS GET /admin/secret/ -> 200 [trailing-slash] 200 without credentials: the protected handler answered
It detects Hono, Fastify, Nest and Express automatically. For a plain node or expo handler, add adapter: 'node' or adapter: 'expo'. It doesn't depend on Vitest, so other test runners work too. A typo in your routes or mutation names throws a normal error, never a fake "bypass".
For each route marked expect: deny:
\ and // first and hide the very bug being tested.| Response | Verdict |
|---|---|
| Any 2xx | bypass: the protected handler answered |
| Any other 4xx (401, 403, 404, 400...) | ok: the handler was not reached |
| Redirect to your login path, or back to the same route | ok |
| 5xx, 408, 429, timeout, any other redirect | inconclusive: not a pass, and it fails the run by default |
A 404 where the baseline gave 401 is still "ok", because what matters is that the handler didn't run.
Exit code 2 and a "Setup errors" section. The route's baseline wasn't denied. The reason is in the report:
answered 200 without credentials: the route is public, or auth isn't applied. Fix the app, or mark it expect: allow.answered 404: wrong path, or the route doesn't exist.network error: the server isn't reachable. Check --target.Exit code 2 with "inconclusive" rows. Something returned a 5xx, a rate limit (429), a timeout, or a redirect that isn't your login. Re-run, check for rate limiting, or tell the tool where your login lives: --login-path /signin. To allow inconclusive results without failing the run, add --no-fail-on-inconclusive.
Exit code 65. The entry file couldn't be loaded. Common causes:
listen() elsewhere.tsx; Nest apps with decorators most likely need tsx.--adapter doesn't match what the file exports.{ app } wrapper (see below), or the Promise rejected.Exit code 2 on an https:// target, with "unable to verify the first certificate" or "self-signed". The tool verifies certificates, and a development server's certificate isn't trusted. Either pass --insecure, or trust the CA and keep checking: NODE_EXTRA_CA_CERTS=./ca.pem npx probe run ....
A 2xx you think is a false alarm. Single-page apps and catch-all routes often return 200 for unknown paths. Pass --handler-marker <text that only your protected handler returns>; a 2xx without it is then treated as inconclusive instead of a bypass.
--entry must exportThe module's default export, or an export named app:
| Adapter | Export |
|---|---|
hono |
A Hono app (served through @hono/node-server, as in production) |
fastify |
A Fastify instance, not listening |
nest |
A created Nest app on the Express platform, not listening |
express |
The Express app (const app = express()), without app.listen |
node |
A request listener (req, res) => void, as passed to http.createServer |
expo |
The (req, res, next) handler from createRequestHandler({ build }) in expo-server/adapter/http, where build is your expo export server output |
The export can be the app, a Promise of it (Nest creates its app asynchronously, so export const app = NestFactory.create(AppModule) works), or an { app } wrapper such as CommonJS module.exports = { app }. The Promise may also sit inside the wrapper. Anything else is rejected with exit 65.
A handler that throws can't crash the probe; it's recorded as a 500 (inconclusive). For Expo, expo-server's ESM build can't be loaded by plain Node, so build the handler in an entry that loads it with require('expo-server/adapter/http').
probe run --routes <file> (--target <origin> | --adapter <name> --entry <file>) [options]
probe list-mutations [--json]
| Option | Meaning |
|---|---|
--routes <file> |
Route file (.yaml, .yml or .json). Required |
--target <origin> |
Probe a running server, e.g. http://localhost:3000 |
--adapter <name> --entry <file> |
Start your app in-process instead |
--out <file> |
Save the report here (.json for JSON, otherwise Markdown). Default: Markdown to the screen |
--json <file> |
Also save the JSON report |
--mutations a,b,c |
Only run these checks (see probe list-mutations) |
--handler-marker <text> |
Text your protected handler returns (see Troubleshooting) |
--login-path <path> |
A path a login redirect may point to. Repeatable. Default /login |
--no-fail-on-inconclusive |
Don't fail the run on inconclusive results |
--verbose |
Print every request's verdict after the run |
--timeout <ms>, --concurrency <n> |
Defaults: 5000 ms (one retry on network failure) and 8 |
--allow-remote |
Allow a target that isn't localhost (see Safety) |
--insecure |
Skip certificate verification on an https target (self-signed or local dev certs). Prefer NODE_EXTRA_CA_CERTS=ca.pem to trust a CA and keep verification on |
Route file details. Each route can also skip a check it legitimately allows, and expect: allow routes are listed but never probed:
routes:
- path: /uploads/report
expect: deny
skipMutations: [trailing-slash] # this route accepts a trailing slash on purpose
- path: /health
expect: allow
expect is required (there's no default verdict). Every mistake in the file is reported with its position, and an unknown check name is an error, so a typo can't quietly shrink your test.
Run probe list-mutations for the full list. They fall into six groups: encoded separators (%2F, %5C, double-encoded), literal swaps (\, //), line terminators (%0A, %0D and two Unicode ones), path structure (trailing slash, ./, ../, upper-case), prefix tricks (an extra segment before the protected path), and ;param injection.
Each check says how well its origin is established:
| Status | Meaning | Count |
|---|---|---|
reproduced |
Fails on the vulnerable Hono version and passes on the fixed one (see repro/) |
10 |
advisory-only |
Described by a published advisory, not reproduced here | 11 |
general-class |
A classic path-disagreement shape with no specific advisory | 9 |
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.