Potential DoS when using ContextLines integration
Impact
The ContextLines integration 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 for more details.
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
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | @sentry/astro | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm package | @sentry/aws-serverless | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm package | @sentry/bun | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm package | @sentry/google-cloud-serverless | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm package | @sentry/nestjs | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm package | @sentry/nextjs | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm package | @sentry/node | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm package | @sentry/nuxt | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm package | @sentry/remix | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm package | @sentry/solidstart | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm package | @sentry/sveltekit | >= 8.10.0, < 8.49.0 | 8.49.0 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L- Weakness (CWE)
CWE-774- Platform
- npm
- Package
@sentry/astro, @sentry/aws-serverless, @sentry/bun- Disclosed
- 28.01.2025
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-r5w7-f542-q2j4 - CC BY 4.0
Vulnerability history: @sentry/google-cloud-serverless
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 01.2025 11.2025
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Medium 1
- Low 1
Disclosures per year
- 2025: 2
- 2026: 0
-
Potential DoS when using ContextLines integration this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.