Critical · 9.1 Node.js & npm CVE-2026-114139 GHSA-mchm-gjx6-7h55
Middleware Bypass in @sentry/nextjs Tunnel Route (CVE-2026-114139)
A vulnerability in the @sentry/nextjs webpack integration can allow unauthenticated requests to bypass application middleware when a route collides with a configured tunnelRoute. Fixes are available.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
A vulnerability has been identified in @sentry/nextjs, the official Sentry SDK integration for Next.js applications. The issue, tracked as CVE-2026-114139 (GHSA-mchm-gjx6-7h55), involves the webpack integration's handling of the tunnelRoute feature, which can cause application middleware to be skipped for certain request paths, potentially allowing unauthenticated access to protected routes under specific conditions.
What happened
A vulnerability was disclosed in @sentry/nextjs, the official Sentry JavaScript SDK integration for Next.js. The webpack integration skips application middleware for every request path under a configured tunnelRoute, while the actual tunnel rewrite only serves the exact tunnel path when valid 'o' and 'p' query parameters are present. This creates a gap where other requests matching the tunnel path pattern are not properly routed through the tunnel logic, but also do not pass through middleware.
Technical cause
The root cause is a protection mechanism failure (CWE-693). When an application route directly collides with the configured tunnel path, or when a root dynamic segment resolves under that path, an unauthenticated request can reach that route without passing through middleware authorization checks. Exploitation depends on several conditions being present simultaneously: the tunnelRoute option must be configured, the application must use a webpack build, a route must collide with the tunnel path, and middleware must be the sole authorization control protecting that route.
Why it matters
If an application relies solely on middleware for authorization and has a route that collides with its configured tunnelRoute path, an attacker could send unauthenticated requests that reach that route without the expected authorization checks. This could expose protected functionality or data to users who should not have access, depending on what the affected route does.
Who is affected
Applications using @sentry/nextjs with a webpack build that have configured the tunnelRoute option, and where an application route collides with that tunnel path or a root dynamic segment resolves under it, are at risk — specifically when middleware is the only authorization mechanism protecting the affected route. Applications that do not use tunnelRoute, do not use webpack, or do not have colliding routes are not affected by this specific issue.
Affected versions
@sentry/nextjs versions from 9.36.0 up to (but not including) 9.47.2 are affected. Versions from 10.0.0 up to (but not including) 10.75.2 are affected. Versions from 11.0.0-alpha.0 up to (but not including) 11.0.0-rc.1 are also affected.
Fixes and mitigation
The issue is fixed in @sentry/nextjs versions 9.47.2, 10.75.2, and 11.0.0-rc.1. Organizations using affected versions with tunnelRoute configured should upgrade to one of these fixed versions.
Recommended action
Update @sentry/nextjs to version 9.47.2, 10.75.2, or 11.0.0-rc.1, depending on which release line your application uses. If an immediate update is not possible, review whether any application routes collide with your configured tunnelRoute path and, if so, ensure that authorization checks are not solely dependent on middleware for those routes.
PatchBriefing score
9.1 / 10 · Critical
Official CVSS: 9.1
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
EPSS 0.0072 (49 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- @sentry/nextjs >= 11.0.0-alpha.0, < 11.0.0-rc.1
- vulnerable
- @sentry/nextjs ≥ 11.0.0-alpha.0 < 11.0.0-rc.1
- vulnerable
- ≥ 10.75.2
- patched
- ≥ 11.0.0-rc.1
- patched
- ≥ 9.47.2
- patched
Reported fixes
The issue is fixed in @sentry/nextjs versions 9.47.2, 10.75.2, and 11.0.0-rc.1. Organizations using affected versions with tunnelRoute configured should upgrade to one of these fixed versions.
How this was built
3 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
GitHub Advisory Database database
-
OSV.dev database
Revision history
- Published
- Generated
- Published
- Generated