Summary
CVE-2026-114139 is a middleware bypass (CWE-693, Protection Mechanism Failure) in the Sentry JavaScript SDK’s @sentry/nextjs package when the tunnelRoute option is used with the webpack integration. Unauthenticated requests can reach routes that rely on application middleware for protection. The vulnerability is rated Critical (score 9.1).
Technical details
- Root cause: The webpack integration of
@sentry/nextjsskips application middleware for every request path under a configuredtunnelRoute. The tunnel itself only serves exact paths with valid parameters (oandp), so the middleware skip is wider than the tunnel rewrite. - Trigger conditions: All of the following must apply:
tunnelRouteis configured; the app is built with webpack (not Turbopack); the app has routes that resolve under the tunnel path (a direct path collision or root dynamic segments); and middleware is the only place authorization is enforced for those routes. - Attack vector: Network. The attacker is unauthenticated and needs no user interaction. The attacker sends requests to the tunnel path that match the colliding routes but are not real tunnel requests.
- Impact: Requests skip middleware entirely, which can bypass authorization checks and expose or modify data on protected routes. The vendor notes that server-side session validation within routes still protects them.
Affected software
@sentry/nextjs9.36.0 through 9.47.1 (fixed in 9.47.2)@sentry/nextjs10.0.0-alpha.0 through 10.75.1 (fixed in 10.75.2)@sentry/nextjs11.0.0-alpha.0 through 11.0.0-rc.0 (fixed in 11.0.0-rc.1)
Severity
CVSS v4.0 base score 9.1 (Critical): CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N. The CVE record gives a v4.0 vector and no v3.1 vector.
Mitigation and recommended actions
- Immediate: Upgrade
@sentry/nextjsto 9.47.2, 10.75.2, or 11.0.0-rc.1 or later, and rebuild and redeploy the application. - Workarounds if you cannot patch immediately:
- Use a
tunnelRoutepath that no application route can match. - Build with Turbopack instead of webpack.
- Enforce authorization at the route or layout level instead of relying only on middleware.
- Use a

