CVE-2023-46729: Sentry Next.js SSRF Vulnerability

@sentry/nextjs Updated 02 Oct 2025

Summary

09/11/2023
Yes i
Moderate
6.1

CVE-2023-46729: Sentry Next.js vulnerable to SSRF via Next.js SDK tunnel endpoint. Affects @sentry/nextjs versions >= 7.26.0, < 7.77.0. Fixed in 7.77.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Sentry Next.js is an open-source error tracking tool designed for Next.js applications. It provides developers with the ability to monitor and debug errors in their applications. The Next.js SDK tunneling feature allows users to configure tunneling to avoid ad-blockers. However, an unsanitized input in the Next.js SDK tunnel endpoint can lead to a Server-Side Request Forgery (SSRF) vulnerability.

Vulnerability Detail

The SSRF vulnerability in Sentry Next.js allows an attacker to send HTTP requests to arbitrary URLs and reflect the response back to the user. This can result in various attack vectors, including client-side vulnerabilities such as XSS/CSRF, interaction with internal networks, reading cloud metadata endpoints (AWS, Azure, Google Cloud, etc.), and local/remote port scanning. It is important to note that this vulnerability only affects users who have enabled the Next.js SDK tunneling feature.

How To Fix

Latest published version: 11.8.0 as of 23 Oct 2026

npm install @sentry/nextjs@11.8.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.77.0

This is the first release that contains the fix.

npm install @sentry/nextjs@7.77.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If updating the package is not immediately feasible, users can disable tunneling by removing the tunnelRoute option from the Sentry Next.js SDK configuration file (next.config.js or next.config.mjs). This will prevent the SSRF vulnerability from being exploited.

Conclusion

The Sentry Next.js SSRF vulnerability allows attackers to send HTTP requests to arbitrary URLs and potentially exploit various attack vectors. It is crucial for users to update to version 7.77.0 of the @sentry/nextjs package or disable tunneling to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for @sentry/nextjs →

Share this vulnerability

FAQ

This vulnerability affects users who have enabled the Next.js SDK tunneling feature in their Sentry Next.js applications.

The SSRF vulnerability can lead to various attack vectors, including client-side vulnerabilities, interaction with internal networks, reading cloud metadata endpoints, and local/remote port scanning.

Users should update to version 7.77.0 of the @sentry/nextjs package. Alternatively, they can disable tunneling by removing the tunnelRoute option from the Sentry Next.js SDK configuration file.

Yes, users can disable tunneling by removing the tunnelRoute option from the Sentry Next.js SDK configuration file.

More information about this vulnerability can be found in the Sentry Next.js tunneling feature documentation and the provided references.

Related vulnerabilities

Recent vulnerabilities recorded for @sentry/nextjs.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 11.8.0 as of 23 Oct 2026

npm install @sentry/nextjs@11.8.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

7.77.0

This is the first release that contains the fix.

npm install @sentry/nextjs@7.77.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback