Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @sentry/nextjs
  4. ›
  5. CVE-2026-114139

CVE-2026-114139: Sentry-Javascript: Middleware Bypass when using Tunnel route

October 22, 2026

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.

References

  • github.com/advisories/GHSA-mchm-gjx6-7h55
  • github.com/getsentry/sentry-javascript/commit/878b685c85dc12045e47e1932c96f5381d7ac532
  • github.com/getsentry/sentry-javascript/commit/c122aac4f29541eb6da494296822c91eab3cf5ae
  • github.com/getsentry/sentry-javascript/commit/d525a2f6015b47384bc139c30d58e0d5435d52e5
  • github.com/getsentry/sentry-javascript/pull/24499
  • github.com/getsentry/sentry-javascript/pull/24565
  • github.com/getsentry/sentry-javascript/pull/24760
  • github.com/getsentry/sentry-javascript/releases/tag/10.75.2
  • github.com/getsentry/sentry-javascript/releases/tag/11.0.0-rc.1
  • github.com/getsentry/sentry-javascript/releases/tag/9.47.2
  • github.com/getsentry/sentry-javascript/security/advisories/GHSA-mchm-gjx6-7h55
  • nvd.nist.gov/vuln/detail/CVE-2026-114139

Code Behaviors & Features

Detect and mitigate CVE-2026-114139 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 9.36.0 before 9.47.2, all versions starting from 10.0.0-alpha.0 before 10.75.2, all versions starting from 11.0.0-alpha.0 before 11.0.0-rc.1

Fixed versions

  • 9.47.2
  • 10.75.2
  • 11.0.0-rc.1

Solution

Upgrade to versions 9.47.2, 10.75.2, 11.0.0-rc.1 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-693: Protection Mechanism Failure

Source file

npm/@sentry/nextjs/CVE-2026-114139.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 24 Oct 2026 12:15:38 +0000.