External risk intelligence

Sentry Javascript @sentry/nextjs Webpack Integration Bypass

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-114139

The vulnerability exists in @sentry/nextjs, a library commonly used in internet-facing web applications. Because it affects how requests are handled at the application middleware level within a web server, and successful exploitation involves targeting a route that is publicly accessible, the vulnerable surface is a standard component of many internet-facing web deployments.

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory concerns a vulnerability in the webpack integration for @sentry/nextjs, a tool used for error tracking in JavaScript applications. The issue allows unauthenticated requests to bypass authorization controls under specific routing configurations, potentially exposing application routes. The primary concern is to confirm whether this specific integration and configuration are in use.

  • Bypass security checks on certain web requests.
  • Important for web applications using Sentry error tracking.
  • Confirm if this Sentry integration is in use.

Attack Path

How an attacker could exploit the issue

An attacker could potentially bypass authorization checks by exploiting a misconfiguration in the webpack integration of @sentry/nextjs. This bypass occurs when a tunnelRoute is configured and an application route either directly conflicts with the tunnel path or a root dynamic segment resolves under it. If middleware is the sole method of authorization, an unauthenticated request could then reach and execute this route, leading to unintended access.

  • Requires tunnelRoute and webpack build.
  • Triggers when routes collide with tunnel path.
  • Allows unauthenticated access to routes.

Live Threat

Current exploitation, exposure, and threat context

When supported by the advisory, an unauthenticated request could bypass middleware authorization for specific application routes that collide with a configured tunnel path. This could expose application logic or data accessible through those routes.

  • Application routes could be exposed.
  • Requests bypass middleware authorization.
  • Unauthorized access to routes.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability in Sentry-Javascript's webpack integration for @sentry/nextjs affects applications using specific configurations. The primary responsibility for addressing this likely falls to application owners or platform teams managing the JavaScript build and application routes. The first crucial step is to identify all instances of the affected Sentry-Javascript versions, determine if the `tunnelRoute` is configured, and assess if any application routes or dynamic segments directly collide with the `tunnelRoute` or its subpaths, thereby bypassing middleware authorization.

  • Application owners and platform teams.
  • Verify `tunnelRoute` configuration and route collisions.
  • Plan remediation based on exposure and business criticality.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the Sentry-Javascript library and the @sentry/nextjs package?

Sentry-Javascript is an official set of tools designed to help developers monitor and track errors in their JavaScript applications. The @sentry/nextjs package is a specific integration for the Next.js web framework. Developers often include this library to automatically capture diagnostic data and performance metrics, helping them identify issues that occur in their web interfaces or server-side application logic.

What is the vulnerability class for CVE-2026-114139?

This vulnerability is classified as CWE-693, which refers to protection mechanism failures. In the context of this CVE, the Sentry-Javascript integration fails to properly enforce security policies. Specifically, it incorrectly bypasses application-level middleware, which is the gatekeeper meant to authorize requests, thereby allowing traffic to reach internal routes that should have been protected.

How does an attacker trigger this bypass?

The bypass occurs only if specific preconditions are met: you must be using the webpack build, have a tunnelRoute configured, and have an application route that collides with that tunnel path. If your application routes do not conflict with the tunnel path or its dynamic segments, the middleware bypass does not occur. The bug is limited to scenarios where these specific routing collisions exist.

Why should I care about this vulnerability?

Halo Surface Signal identifies this as a significant concern because @sentry/nextjs is frequently used in internet-facing web applications where middleware provides essential authorization. If your application is publicly accessible and relies solely on middleware to secure routes that happen to collide with your Sentry tunnel path, unauthorized parties could potentially access restricted application logic or data.

What are the first steps to address this issue?

Start by auditing your environment to identify if you are using affected versions of the Sentry-Javascript SDK. Next, verify your configuration to see if a tunnelRoute is enabled and if any of your application routes or dynamic segments overlap with that tunnel path. Once identified, plan to update to the patched versions provided by Sentry to ensure middleware authorization is correctly enforced.

References