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

@next/routing

Latest version: v16.5.0-canary.62

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: matt.straka, vercel-release-bot
143,619 Stars
32,729 Forks
152 Versions
70.1K Downloads
JavaScript Repo language

Scan summary

@next/routing was last scanned on 23 Nov 2026 at version 16.5.0-canary.62. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 152 versions; the latest 5 were published within 4 days (20–23 Nov 2026).
  • Findings: No rules fired in version 16.5.0-canary.62.
  • Downloads: 70,057 downloads.

Versions

152 versions published
Versions and the rules that fired in each
VersionPublishedStatus
16.5.0-canary.62 LATEST 23 Nov 2026 No rules fired
16.5.0-canary.61 22 Nov 2026 No rules fired
16.5.0-canary.60 21 Nov 2026 No rules fired
16.5.0-canary.59 20 Nov 2026 Not shown
16.5.0-canary.58 20 Nov 2026 Not shown

No rules fired in 16.5.0-canary.62

Findings

Findings for v16.5.0-canary.62. 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 16.5.0-canary.62; other versions have their own rules, not their own score.

README

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

@next/routing

Shared route resolving package for Next.js.

Overview

This package provides a comprehensive route resolution system that handles rewrites, redirects, middleware invocation, and dynamic route matching with support for conditional routing based on headers, cookies, queries, and host.

Installation

npm install @next/routing

Usage

import { resolveRoutes } from '@next/routing'

const result = await resolveRoutes({
  url: new URL('https://example.com/api/users'),
  basePath: '',
  requestBody: readableStream,
  headers: new Headers(),
  pathnames: ['/api/users', '/api/posts'],
  routes: {
    beforeMiddleware: [],
    beforeFiles: [],
    afterFiles: [],
    dynamicRoutes: [],
    onMatch: [],
    fallback: [],
  },
  invokeMiddleware: async (ctx) => {
    // Your middleware logic
    return {}
  },
})

if (result.resolvedPathname) {
  console.log('Resolved pathname:', result.resolvedPathname)
  console.log('Resolved query:', result.resolvedQuery)
  console.log('Invocation target:', result.invocationTarget)
}

Route Resolution Flow

  1. beforeMiddleware routes - Applied before middleware execution
  2. invokeMiddleware - Custom middleware logic
  3. beforeFiles routes - Applied before checking filesystem
  4. Static pathname matching - Check against provided pathnames
  5. afterFiles routes - Applied after filesystem checks
  6. dynamicRoutes - Dynamic route matching with parameter extraction
  7. fallback routes - Final fallback routes

Route Configuration

Each route can have:

  • sourceRegex - Regular expression to match against pathname
  • destination - Destination path with support for replacements ($1, $name)
  • headers - Headers to apply on match
  • has - Conditions that must match
  • missing - Conditions that must not match
  • status - HTTP status code (3xx for redirects)
Redirects

When a route has:

  • A redirect status code (300-399)
  • Headers containing Location or Refresh

The routing will end immediately and return a redirect result with the destination URL and status code.

Has/Missing Conditions

Conditions support:

  • header - Match HTTP headers
  • cookie - Match cookies
  • query - Match query parameters
  • host - Match hostname

Values can be:

  • undefined - Match if key exists
  • String - Direct string match
  • Regex string - Match against regex pattern

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 @next/routing

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

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose 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

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229