CVE-2023-46729CWE-918

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

Critical · published November 10, 2023

CVSS v3.1
9.3
EPSS
1%
Percentile
49.6
In the wild
Unconfirmed
What it is

🚨 An unsanitized input in the Sentry JavaScript SDK allows requests to any URL—it’s like giving a delivery driver the freedom to drop off packages anywhere, even to the wrong address! 🔥 Imagine a courier who, instead of verifying the delivery address, just accepts whatever the sender wrote down—resulting in packages going to unintended recipients. This vulnerability exposes users to potential data leaks or malicious content being served straight to them from arbitrary endpoints. An attacker could exploit this flaw to send malicious requests to any destination and reflect the responses back to users, compromising data integrity and potentially leading to credential theft or malware distribution. This is absolutely devastating for any application leveraging the Next.js SDK tunneling feature, as it can disrupt user trust and application security.

Put simply

Imagine a courier who, instead of verifying the delivery address, just accepts whatever the sender wrote down—resulting in packages going to unintended recipients. This vulnerability exposes users to potential data leaks or malicious content being served straight to them from arbitrary endpoints. This vulnerability arises from an unsanitized input in the Next.js SDK tunnel endpoint of the Sentry JavaScript SDK, allowing attackers to manipulate HTTP requests to arbitrary URLs.

What to do

An attacker could exploit this flaw to send malicious requests to any destination and reflect the responses back to users, compromising data integrity and potentially leading to credential theft or malware distribution. This is absolutely devastating for any application leveraging the Next.js SDK tunneling feature, as it can disrupt user trust and application security. Upgrade to version 7.77.0 immediately to mitigate this vulnerability. Review your application's use of the Sentry SDK and ensure that the Next.js tunneling feature is handled securely. Also, consider implementing additional input validation to prevent such issues in the future. You’ve got this! Follow these steps, and you'll have your application secured in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.3 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00631 · 49.6th percentile
Weakness
CWE-918 · Server-Side Request Forgery (SSRF)
Published
2023-11-10T00:57Z
EPSS history
Timeline
  • 10 NOV 00:57Z
    Sentry Next.js vulnerable to SSRF via Next.js SDK tunnel endpoint
    cvelistv5