Sentry Next.js vulnerable to SSRF via Next.js SDK tunnel endpoint
Moderate severity
GitHub Reviewed
Published
Nov 9, 2023
in
getsentry/sentry-javascript
•
Updated Nov 17, 2023
Description
Published to the GitHub Advisory Database
Nov 9, 2023
Reviewed
Nov 9, 2023
Published by the National Vulnerability Database
Nov 10, 2023
Last updated
Nov 17, 2023
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:
This issue only affects users who have Next.js SDK tunneling feature enabled.
Patches
The problem has been fixed in sentry/nextjs@7.77.0
Workarounds
Disable tunneling by removing the
tunnelRoute
option from Sentry Next.js SDK config —next.config.js
ornext.config.mjs
.References
Credits
References