What happened#
@sentry/nextjs has an option called tunnelRoute. It sends the browser SDK’s reports through a path on your own domain so ad blockers are less likely to drop them. According to Sentry’s advisory, the webpack integration makes Next.js skip your application middleware for every request under that path, so Sentry’s report requests aren’t blocked. The rewrite that forwards reports to Sentry, though, only handles the exact tunnel path with valid o and p query parameters. The skip is broader than the rewrite.
The advisory says that gap lets other requests under the tunnel path reach your application without middleware ever running. It stresses a limit: skipping middleware grants no privileges by itself, and routes that check the session on the server are still protected. Sentry’s own services and organisation data are not affected.
The CVE record (reserved 20 October and published 21 October 2026, with GitHub as the CNA) rates it Critical, CVSS 4.0 base score 9.1, weakness CWE-693 (protection mechanism failure). It also carries a CISA enrichment entry that lists exploitation as “none”, automatable as “yes” and technical impact as “total”. That entry reflects CISA’s assessment on 28 October; it doesn’t describe any observed attack. GitHub’s Advisory Database lists the same issue as Critical. One note of caution: when I fetched Sentry’s own advisory page, the summary I got labelled it “moderate” and gave a publication date of 24 September, which doesn’t match the CVE record, so treat the severity label as something to confirm on the advisory itself.
| Item | Value |
|---|---|
| CVE / advisory | CVE-2026-114139 / GHSA-mchm-gjx6-7h55 |
| Package | @sentry/nextjs (npm) |
| Affected | 9.36.0 to before 9.47.2; 10.0.0-alpha.0 to before 10.75.2; 11.0.0-alpha.0 to before 11.0.0-rc.1 |
| Patched | 9.47.2, 10.75.2, 11.0.0-rc.1 |
| Severity in the CVE record | Critical, CVSS 4.0 base score 9.1 |
| Weakness | CWE-693, protection mechanism failure |
The fix, per the 10.75.2 release notes, is a change that “aligns tunnel request matching in middleware with the tunnel rewrite” (pull request #24565). In other words, middleware is skipped only for requests the tunnel really serves.
Am I affected?#
The advisory says all four must hold. If any one is false, it does not list you as exposed.
| Condition | Where to look |
|---|---|
| tunnelRoute is set | The Sentry options in next.config (withSentryConfig) |
| The app is built with webpack, not Turbopack | Your build script and next.config; the advisory says Turbopack builds are not affected |
| A route of yours resolves under the tunnel path, by direct collision or via a root dynamic segment such as app/[locale] | Your app/ directory against the tunnelRoute value |
| Middleware is the only place that enforces authorization for that route | middleware (or proxy) file versus checks in routes, layouts and data access |
You also need to be on a version older than the fixed ones listed above.
What to do now#
- Check the version and the option. Find out which
@sentry/nextjsis installed and whethertunnelRouteis set. - Upgrade to 9.47.2, 10.75.2 or 11.0.0-rc.1 or later on your line. The advisory says no configuration change is needed.
- Check authorization lives in the route, not only in middleware. The advisory’s own workaround list includes enforcing authorization in routes, layouts or the data-access layer in addition to middleware.
- If you can’t upgrade today, the advisory lists these workarounds: choose a tunnel path that no route can resolve under, remove
tunnelRoute, or build with Turbopack.
# Which version is installed?
npm ls @sentry/nextjs
# Is tunnelRoute set? (look in your Next config)
grep -rn "tunnelRoute" next.config.*
# Upgrade within your major line, then deploy
npm install @sentry/nextjs@latestWhat the sources don’t say#
- Whether anyone has exploited this. The advisory doesn’t say; CISA’s enrichment lists exploitation as “none” as of 28 October.
- How many apps combine
tunnelRoutewith a colliding route and middleware-only checks. No numbers are given. - The advisory credits and the exact dates were not fully visible in what I fetched, and the severity label differed between pages, as noted above.
My take#
My own opinion, not from the advisory.
Middleware is convenient for a first line of defence, but a bug like this is a reminder that it is a routing layer, and routing layers have gaps. Checking the session where the data is read costs a few lines and means a skipped middleware is an inconvenience rather than a breach. It is also worth noting how narrow the conditions are; for most Sentry users this will not apply, and it takes five minutes to confirm.
Sources#
- Sentry: Middleware bypass when using tunnel route (GHSA-mchm-gjx6-7h55), primary source
- CVE Program: CVE-2026-114139 record (CNA GitHub, with CISA enrichment)
- GitHub Advisory Database: GHSA-mchm-gjx6-7h55
- Sentry: release 10.75.2
Keep reading
8 min read
Nuxt 4.6.4 security release: eight advisories, including two route-rule and middleware bypasses. What to upgrade to, and how to check your app
Nuxt 4.6.4 fixes eight advisories: a leading // and an encoded %2F that can skip middleware and route rules, a dev-server file read, leaked error details and more.
7 min read
Hono advisories, November 2026 (CVE-2026-126355 to 126359 and more): what to upgrade to, and how to check your middleware
Hono 4.13.16 fixes five advisories: mount() and RegExpRouter middleware bypasses, a csrf() gap and a form validator skip. Plus two @hono/node-server fixes. What to check.