GHSA-mchm-gjx6-7h55: Npm/@sentry/nextjs vulnerability

Published Oct 22, 2026
·
Updated

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.

Affected Software

3 affected componentsFixes available
npm/@sentry/nextjs>=11.0.0-alpha.0<11.0.0-rc.1
11.0.0-rc.1
npm/@sentry/nextjs>=10.0.0-alpha.0<10.75.2
10.75.2
npm/@sentry/nextjs>=9.36.0<9.47.2
9.47.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@sentry/nextjs to a version that resolves this vulnerability.

    Fixed in 11.0.0-rc.1
  2. Upgrade

    Upgrade npm/@sentry/nextjs to a version that resolves this vulnerability.

    Fixed in 10.75.2
  3. Upgrade

    Upgrade npm/@sentry/nextjs to a version that resolves this vulnerability.

    Fixed in 9.47.2
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.47.2
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 10.75.2
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 11.0.0-rc.1
  7. Configuration

    Build with Turbopack; Turbopack builds are not affected.

    Next.js build build tool = Turbopack
  8. Configuration

    Set tunnelRoute to a path no route of the application can resolve under, or remove the tunnelRoute option.

    Next.js tunnelRoute tunnelRoute = A path that no application route can resolve, or unset/remove the option
  9. Compensating control

    Enforce authorization in the route, layout, or data-access path in addition to middleware.

Event History

Oct 22, 2026
Advisory Published
via GitHub·03:55 PM
Data Sourced
via GitHub·03:55 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Is an application using the default SDK configuration affected?

No. Exposure requires tunnelRoute to be configured as either a string path or true; applications without tunnelRoute configured do not meet the stated affected conditions.

2

Which deployments should be prioritized for review?

Review webpack-built applications that use tunnelRoute and have application routes resolving below the tunnel path. This includes direct route collisions and route-root dynamic segments such as app/[locale]/…, which can match the first path segment.

3

What is the security impact of a matching route?

Requests in the gap between the middleware skip and the narrower tunnel rewrite reach the application without middleware running. This does not grant privileges by itself: routes that enforce session checks server-side remain protected.

4

Are Turbopack builds affected?

No. The issue applies to applications built with webpack; Turbopack builds are explicitly not affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203