GitHub Advisoryadvisory · npm

GHSA-2rmr-xw8m-22q9 Sentry Next.js vulnerable to SSRF via Next.js SDK tunnel endpoint

MEDIUM Published 2023-11-09 Modified 2023-11-17 Official page ↗
Aliases
CVE-2023-46729
Ecosystem
npm
Packages
@sentry/nextjs
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-918
Reviewed
2023-11-09

Affected packages

• npm @sentry/nextjs: >= 7.26.0, < 7.77.0 → fixed in 7.77.0

Description

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 • Sentry Next.js tunneling feature • The fix • More Information Credits • Praveen Kumar

Related

Alias · CVE (1)

  • CVE-2023-46729 sentry-javascript provides Sentry SDKs for JavaScript. vulnerability

Weakness · CWE (1)

  • CWE-918 Server-Side Request Forgery weakness

References