All vulnerabilities
CVE-2026-114139GHSA-mchm-gjx6-7h55

@sentry/nextjs: Sentry-Javascript: Middleware Bypass when using Tunnel route

getsentry @sentry/nextjsnpmLibraries & packages
CVSS
9.1Critical
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.41%Chance of exploitation activity in the next 30 days, higher than 33% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in9.47.2Also 10.75.2, 11.0.0-rc.1GitHub
Published21 Oct 2026Updated 22 Oct 2026CVE List

What fixes it

  • 9.47.2@sentry/nextjs, npmGitHubnpm install @sentry/nextjs@9.47.2
  • 10.75.2@sentry/nextjs, npmGitHubnpm install @sentry/nextjs@10.75.2
  • 11.0.0-rc.1@sentry/nextjs, npmGitHubnpm install @sentry/nextjs@11.0.0-rc.1

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Impact

The tunnelRoute option makes the SDK send browser events to a path on your own Next.js server (for example /monitoring), where a rewrite forwards them to Sentry to prevent ad blockers from blocking them. To keep those envelope requests from being rejected by your middleware, the SDK skips middleware for them.

The middleware skip was wider than the rewrite. The rewrite only serves requests to the tunnel path itself with the o and p parameters set. The skip applied to anything under the tunnel path. Requests in that gap go to your application instead of Sentry, and your middleware never runs on them.

Skipping middleware does not grant the request any privileges. Routes that check the session server-side are still protected.

You are affected only if all of the following are true:

  1. tunnelRoute is set (a string path or true),
  2. your app is built with webpack (Turbopack builds are not affected),
  3. some route of your application resolves under the tunnel path. That could be a direct collision (/monitoring/foo with tunnelRoute: '/monitoring') or a dynamic segment at the route root (app/[locale]/…), which matches any first path segment, and
  4. your middleware is the only place that enforces authorization for those routes.

Sentry's own services, and the data in your Sentry organization, are not affected.

Patches

Fixed in 9.47.2, 10.75.2 and 11.0.0-rc.1. The skip now matches only the requests the tunnel rewrite actually serves. No configuration change is needed.

Workarounds

  • Set tunnelRoute to a path no route of yours can resolve under, or remove the option.
  • Build with Turbopack (default for next build from Next.js 16).
  • Enforce authorization in the route, layout or data-access path as well as in middleware.

Text from GitHub Advisory Database

Affected versions 9

  • @sentry/nextjs, npm>= 9.36.0, < 9.47.2GitHub
  • @sentry/nextjs, npm>= 10.0.0-alpha.0, < 10.75.2GitHub
  • @sentry/nextjs, npm>= 11.0.0-alpha.0, < 11.0.0-rc.1GitHub
  • sentry-javascriptaffected: >= 9.36.0, < 9.47.2CVE List
  • sentry-javascriptaffected: >= 10.0.0-alpha.0, < 10.75.2CVE List
  • sentry-javascriptaffected: >= 11.0.0-alpha.0, < 11.0.0-rc.1CVE List
  • @sentry/nextjs, npmfrom 9.36.0, fixed in 9.47.2OSV
  • @sentry/nextjs, npmfrom 10.0.0-alpha.0, fixed in 10.75.2OSV
  • @sentry/nextjs, npmfrom 11.0.0-alpha.0, fixed in 11.0.0-rc.1OSV

References 12