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

site-paths

Latest version: v0.1.12

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: webik76
0 Stars
0 Forks
14 Versions
1.3K Downloads
JavaScript Repo language

Scan summary

site-paths was last scanned on 29 Nov 2026 at version 0.1.12. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 14 versions; the latest 5 were published on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.12.
  • Downloads: 1,296 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.12 LATEST 29 Nov 2026 No rules fired
0.1.11 29 Nov 2026 No rules fired
0.1.10 29 Nov 2026 No rules fired
0.1.9 29 Nov 2026 Not shown
0.1.8 29 Nov 2026 Not shown

No rules fired in 0.1.12

Findings

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

README

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

site-paths for JavaScript

Stop your site from telling attackers which private routes and records exist.

site-paths is Toller's open-source toolkit for the first step of an attack: finding out what a site has. It makes that step expensive, or gives it nothing. No dependencies. Types included. Apache-2.0.

Why

Attacks are now run by AI-driven frameworks. In November 2026 Google's Threat Intelligence Group reported threat actors using such frameworks "to fully automate vulnerability discovery and exploitation without a human in the loop for the first time". One campaign ran "systematic reconnaissance and vulnerability scanning against a wide range of organizations in Asia".

Every attack starts with reconnaissance, and most sites answer it for free. If /admin/reports answers "sign in" and a made-up path answers "not found", anyone can tell that the reports page exists without seeing a single report. Ask for a list of likely names and you get back the list of what is there.

The fix is to answer both the same way. Then the scan learns nothing it can build on. More on why.

What our lab measured

We run AI-driven attack frameworks against test sites in a closed lab and count what they get.

What the frameworks tried Unprotected Protected
Find which of 8 private staff routes exist. 7 runs each way, 2 frameworks, 2 models Right about all 8, in every run Behind the wall: not one route could be told from a made-up name, in any run. The frameworks had the wall's source code
Read other customers' orders by changing the number in the URL 142 and 102 records read, in the 2 runs counted Behind a wall for single records: 0 records, in 20 runs of 20

These numbers are from one test application with flaws we put there, a handful of runs, and two frameworks. The application ran the JavaScript wall. The walls for the other languages read paths by the same test cases and pass the same check from outside. The numbers show what the wall closes. They are not a share of attacks stopped. How we tested.

What you get

What it does What it needs
The wall Middleware that runs before your router. Callers you don't let in get your normal "not found" for every path of a private part, whether the route exists or not Node.js, or any server on Request/Response
The check A command that asks a deployment from outside and fails if any answer gives a private route away The deployment's address. The site can be written in any language
The hand-off Tells you who came probing An account at Toller's hosted service, which is not open to everybody yet

The wall also exists for Python, Ruby, Rust, Go and PHP.

Install

npm install site-paths

Node.js 20 or later. The package is ES modules. To load it with require, use Node.js 20.19+, 22.12+ or any later line.

Quick start

1. Ask your deployment what it gives away. Name the private part and one route in it that exists. Use the address your visitors use, so the CDN and hosting in front of your server are asked too.

npx -p site-paths site-paths-check --url https://staging.shop.example --under /admin --has /admin/reports

It asks as a stranger for that route and for made-up names beside it. If anything tells them apart, it says what and exits with 1.

2. If it fails, add a wall. Put it after whatever identifies the signed-in user and before your routes:

// Express
import finalhandler from "finalhandler";
import { walled } from "site-paths/node";

app.use(
  walled({
    under: "/admin",
    allow: (request) => request.user?.role === "staff",
    missing: (request, response) => finalhandler(request, response)(),
  }),
);
  • allow is your decision about who is let in.
  • missing is what your site answers for a path that doesn't exist. finalhandler is Express's own 404.

Everyone else now gets that 404 for every path under /admin. Staff reach your routes as before.

3. Run the check again, and keep it in CI. It fails if a later change starts leaking again.

- run: npm ci
- name: The deployment gives no private route away
  run: node_modules/.bin/site-paths-check --url "$PREVIEW_URL" --under /admin --has /admin/reports
  env:
    WALL_STAFF: ${{ secrets.STAFF_SESSION_HEADER }}

This runs the version your lockfile pins. Give it a staff session made for the check alone, on a preview deployment, that expires soon. The output names the routes you asked about, so don't run it where logs are public.

The wall

The wall runs before your site looks a route up. That order is the point: an answer made to look the same after routing can still be told apart by how long it took.

Express and Node's http
import { walled } from "site-paths/node";

app.use(walled({ under: "/admin", allow: (request) => request.user?.role === "staff" }));

walled() returns a (request, response, next) handler. allow and missing get the server's own request and response.

Hono
import { wall } from "site-paths";

const keep = wall({ under: "/admin", allow: (request) => isStaff(request) });
app.use(async (c, next) => ((await keep(c.req.raw)) ? c.notFound() : next()));
Next.js 16
// proxy.js: callers who are kept out are sent to a path the site does
// not have, so they get Next's own 404 page.
import { NextResponse } from "next/server";
import { wall } from "site-paths";

const keep = wall({ under: "/admin", allow: (request) => isStaff(request) });

export async function proxy(request) {
  return (await keep(request)) ? NextResponse.rewrite(new URL("/nothing-here", request.url)) : NextResponse.next();
}

export const config = { matcher: ["/admin", "/admin/:path*"] };

Next.js adds its own header (x-middleware-rewrite) to a rewritten answer, so a caller can tell that something is kept there. Which routes exist does not show. The check warns about it.

Anything on Request and Response
import { wall } from "site-paths";

const staff = wall({
  under: "/admin",
  allow: (request) => isStaff(request),
  missing: (request) => notFound(request),
});

export default {
  async fetch(request, env) {
    return (await staff(request)) ?? site(request, env);
  },
};

wall() returns a function that resolves to a Response for a caller it keeps out, and to null when the request is your site's to answer.

Options
Option
under The start of the private part: that path and everything below it. / is the whole site
match Instead of under: a RegExp for the paths to keep, such as /\.js\.map$/. Matched case-insensitively, because paths are compared in lower case. Not time-limited: avoid patterns that are slow on long input
allow Your decision. Only true lets a caller in. Anything else, or an error, keeps the caller out. An awaited decision that takes more than 3 seconds also keeps the caller out; a synchronous one is never cut short
missing What your site answers for a path that doesn't exist. Optional: without it, or if it fails, a bare 404 is sent
undecided Only with match: what to answer when allow threw or timed out, such as a "try again" page with 503. Optional: without it such callers are kept out like anyone else. See single records
patience Milliseconds an awaited allow may take. Default 3000
failed Called with any error from allow, missing or undecided, so a bug there doesn't lock your staff out unseen. Default: console.error

A wall refuses to be created with no part or two, with a start or pattern that is empty, or with no allow. A wall that keeps nothing, or everything because of an unset variable, should fail loudly at startup.

Good to know
  • Paths are normalized as the most forgiving server would read them. /Admin//reports, /%61dmin/reports and /admin;v=1/reports are all /admin/reports, so no alternate spelling gets past.
  • Mounting doesn't change the part. app.use(walled(...)) and app.use("/admin", walled(...)) keep the same paths.
  • Paths that leave the part with dots are kept too, such as /admin/../reports, because some servers route on the path as written. So is any path deeper than 64 segments.
  • Kept-out answers are never cached. The wall sets cache-control: private, no-store on them. Mark your staff's answers the same way: a cache in between would serve them to the next caller without asking the wall.
  • A wall hides which routes exist, not that a part is private. If your site's own 404 has different cache headers than the wall's answer, a caller can tell the two apart. The check warns about this. To close it, give your 404 page cache-control: private, no-store and pass it as missing.
  • missing must answer. If it calls the next handler, the caller reaches your routes.
  • Overlapping walls: a caller must be let in by all of them.
  • A wall can't hide what you send every browser. A script that names a private route has given it away. The check looks for that.
  • Not covered: websocket upgrades (Node gives them to no handler) and anything your platform serves without calling your server, such as static files on a CDN.
  • It is not authorization. It hides the list of routes from strangers. What a signed-in user may do is still your code's job.

Protect single records

/orders/17 should answer its owner. If it answers anyone signed in, every order can be read by counting. If it answers "forbidden" for someone else's order and "not found" for a free number, nobody reads an order but everybody learns which numbers exist.

Put a wall before single records. It runs your own ownership rule before the handler, and answers everyone else exactly as for a record that doesn't exist.

// Express: single orders, not the list at /orders
app.use(
  walled({
    match: /^\/orders\/[^/]+$/,
    allow: (request) => {
      const number = request.path.match(/^\/orders\/(\d{1,18})$/)?.[1];
      return number !== undefined && mayReadOrder(request.user, number);
    },
    missing: (request, response) => finalhandler(request, response)(),
  }),
);

mayReadOrder is your application's rule. The wall decides nothing itself: a wrong rule is wrong here too.

  • Use a pattern for single records. under: "/orders" would also keep everyone out of the list at /orders.

  • The rule sees every spelling and everything below a record: /Orders/17, /orders//17, /orders/17/items. Have it say yes only to a path it parses the way your handler does, as the inner pattern above does. Anything else is then kept from everybody. The \d{1,18} limit avoids numbers a database would reject with an error.

  • Say no when there is no record and when nobody is signed in. A rule that compares a missing record's owner with a missing user compares undefined with undefined and says yes.

  • Ask your database one question: does this caller have a record with this number? SELECT EXISTS (SELECT 1 FROM orders WHERE customer_id = $1 AND id = $2), over an index on both columns. Asking whose the record is takes a different path for someone else's record than for a free number. We measured that difference at 3 millionths of a second in PostgreSQL; asked the first way, nothing showed (measurement).

  • Decide what happens when the rule fails or is slow. By default a rule that throws, or an awaited rule that takes over 3 seconds, keeps the caller out, so while your database is down an owner is told their own record doesn't exist. Give undecided to answer "try again" instead:

    undecided: (request, response) => {
      response.statusCode = 503;
      response.end("Try again in a moment");
    },

    This is safe only if the rule fails the same way for a record that exists and one that doesn't, as the one-question rule above does. A rule that fails for some records and not others reveals which. If the wall sits inside a part that another wall keeps, put the outer wall first.

  • Signed-out callers get "not found", not "sign in". A sign-in redirect at an order's address says the order exists.

  • A number in a request body is not in the path. The wall reads paths. Run the same rule where you read the body.

  • Lists are your code's job. What /orders shows to whom is not the wall's decision.

The check

WALL_STAFF="cookie: session=…" WALL_CUSTOMER="cookie: session=…" \
  node_modules/.bin/site-paths-check --url https://staging.shop.example \
    --under /admin --has /admin/reports --has /admin/export.csv --customer-can /account

It asks for each route you name and for made-up names beside it, twenty times each in random order, as a stranger and as each caller you give it. It exits with 1 if anything tells a real route from a made-up one: status, headers, body, how often each answer comes, or response time. It works on a site written in any language.

Outside a JavaScript project, run it with a pinned version:

npx -p site-paths@0.1.12 site-paths-check --help

It can also check:

  • single records, with a second account (--has-not, --shows);
  • sign-in and sign-up forms, for answers that reveal who has an account (--alike);
  • routes that take typed input, for error pages that leak (--typed).

The check: every option, what fails, and what it cannot see.

The same checks are functions for your own tests: import { check, alike, typed } from "site-paths/check".

Alerts

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 site-paths

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

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229