3.7
CWE
774
Advisory Published
Updated

GHSA-r5w7-f542-q2j4

First published: Tue Jan 28 2025(Updated: )

### Impact The [ContextLines integration](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/contextlines/) uses readable streams to more efficiently use memory when reading files. The ContextLines integration is used to attach source context to outgoing events. The stream was not explicitly closed after use. This could lead to excessive amounts of file handles open on the system and potentially lead to a Denial of Service (DoS). The ContextLines integration is enabled by default in the Node SDK (`@sentry/node`) and SDKs that run in Node.js environments (`@sentry/astro`, `@sentry/aws-serverless`, `@sentry/bun`, `@sentry/google-cloud-serverless`, `@sentry/nestjs`, `@sentry/nextjs`, `@sentry/nuxt`, `@sentry/remix`, `@sentry/solidstart`, `@sentry/sveltekit`). ### Patches Users should upgrade to version `8.49.0` or higher. ### Workarounds To remediate this issue in affected versions without upgrading to version `8.49.0` and above you can disable the ContextLines integration. See the [docs](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/#removing-a-default-integration) for more details. ```js Sentry.init({ // ... integrations: function (integrations) { // integrations will be all default integrations return integrations.filter(function (integration) { return integration.name !== "ContextLines"; }); }, }); ``` If you disable the ContextLines integration, you will lose source context on your error events. ### References - Reported issue: https://github.com/getsentry/sentry-javascript/issues/14892 - PR Fix: https://github.com/getsentry/sentry-javascript/pull/14997

Affected SoftwareAffected VersionHow to fix
npm/@sentry/sveltekit>=8.10.0<8.49.0
8.49.0
npm/@sentry/solidstart>=8.10.0<8.49.0
8.49.0
npm/@sentry/remix>=8.10.0<8.49.0
8.49.0
npm/@sentry/nuxt>=8.10.0<8.49.0
8.49.0
npm/@sentry/nextjs>=8.10.0<8.49.0
8.49.0
npm/@sentry/nestjs>=8.10.0<8.49.0
8.49.0
npm/@sentry/google-cloud-serverless>=8.10.0<8.49.0
8.49.0
npm/@sentry/bun>=8.10.0<8.49.0
8.49.0
npm/@sentry/aws-serverless>=8.10.0<8.49.0
8.49.0
npm/@sentry/astro>=8.10.0<8.49.0
8.49.0
npm/@sentry/node>=8.10.0<8.49.0
8.49.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203