CVE-2026-114139
JSON

9.1critical

Sentry-Javascript: Middleware Bypass when using Tunnel route

Severity
9.1critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.54% (higher than 46% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-mchm-gjx6-7h55

Description

Sentry-Javascript is an official Sentry SDKs for JavaScript. From 9.36.0 until 9.47.2, 10.75.2, and 11.0.0-rc.1, the webpack integration for @sentry/nextjs skips application middleware for every request path under a configured tunnelRoute, while the tunnel rewrite serves only the exact tunnel path with valid o and p query parameters. When an application route directly collides with the tunnel path or a root dynamic segment resolves under it, an unauthenticated request can reach that route without middleware authorization. Exploitation requires tunnelRoute, a webpack build, a colliding route, and middleware being the only authorization control. This issue is fixed in versions 9.47.2, 10.75.2, and 11.0.0-rc.1.

Affected

Product or packageVersionsReported by
getsentry sentry-javascript>= 9.36.0, < 9.47.2, >= 10.0.0-alpha.0, < 10.75.2, >= 11.0.0-alpha.0, < 11.0.0-rc.1CVE List
@sentry/nextjs (npm)from 9.36.0 before 9.47.2, from 10.0.0-alpha.0 before 10.75.2, from 11.0.0-alpha.0 before 11.0.0-rc.1GitHub Advisory Database

All scores

GitHub_M9.1critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Classification

CWE-693

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

Sentry-Javascript is an official Sentry SDKs for JavaScript. From 9.36.0 until 9.47.2, 10.75.2, and 11.0.0-rc.1, the webpack integration for @sentry/nextjs skips application middleware for every request path under a configured tunnelRoute, while the tunnel rewrite serves only the exact tunnel path with valid o and p query parameters. When an application route directly collides with the tunnel path or a root dynamic segment resolves under it, an unauthenticated request can reach that route without middleware authorization. Exploitation requires tunnelRoute, a webpack build, a colliding route, and middleware being the only authorization control. This issue is fixed in versions 9.47.2, 10.75.2, and 11.0.0-rc.1.

GitHub Advisory Database
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.

References

https://github.com/getsentry/sentry-javascript/security/advisories/GHSA-mchm-gjx6-7h55web
https://github.com/getsentry/sentry-javascript/pull/24499web
https://github.com/getsentry/sentry-javascript/pull/24565web
https://github.com/getsentry/sentry-javascript/pull/24760web
https://github.com/getsentry/sentry-javascript/commit/878b685c85dc12045e47e1932c96f5381d7ac532web
https://github.com/getsentry/sentry-javascript/commit/c122aac4f29541eb6da494296822c91eab3cf5aeweb
https://github.com/getsentry/sentry-javascript/commit/d525a2f6015b47384bc139c30d58e0d5435d52e5web
https://github.com/getsentry/sentry-javascript/releases/tag/10.75.2web
https://github.com/getsentry/sentry-javascript/releases/tag/11.0.0-rc.1web
https://github.com/getsentry/sentry-javascript/releases/tag/9.47.2web
https://nvd.nist.gov/vuln/detail/CVE-2026-114139advisory
https://github.com/getsentry/sentry-javascriptpackage

Sources

SourceRecordLicence
CVE ListCVE-2026-114139 changed 2026-10-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-mchm-gjx6-7h55 changed 2026-10-22CC-BY-4.0
NVDCVE-2026-114139 changed 2026-10-28Public domain