Advisory

GHSA-2rmr-xw8m-22q9

Also known as: CVE-2023-46729

Summary

Sentry Next.js vulnerable to SSRF via Next.js SDK tunnel endpoint

Details

Impact
An unsanitized input of Next.js SDK tunnel endpoint allows sending HTTP requests to arbitrary URLs and reflecting the response back to the user. This could open door for other attack vectors:

  • client-side vulnerabilities: XSS/CSRF in the context of the trusted domain;
  • interaction with internal network;
  • read cloud metadata endpoints (AWS, Azure, Google Cloud, etc.);
  • local/remote port scan.

This issue only affects users who have Next.js SDK tunneling feature enabled.

Patches
The problem has been fixed in sentry/[email protected]

Workarounds
Disable tunneling by removing the tunnelRoute option from Sentry Next.js SDK config — next.config.js or next.config.mjs.

References

Credits

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-11-09 22:03 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

@sentry/nextjs

npm · All systems

Affected

  • introduced 7.26.0, fixed 7.77.0 (semver)

Fixed versions

7.77.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences