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
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Paquete de npm | @sentry/astro | >= 8.10.0, < 8.49.0 | 8.49.0 |
| Paquete de npm | @sentry/aws-serverless | >= 8.10.0, < 8.49.0 | 8.49.0 |
| Paquete de npm | @sentry/bun | >= 8.10.0, < 8.49.0 | 8.49.0 |
| Paquete de npm | @sentry/google-cloud-serverless | >= 8.10.0, < 8.49.0 | 8.49.0 |
| Paquete de npm | @sentry/nestjs | >= 8.10.0, < 8.49.0 | 8.49.0 |
| Paquete de npm | @sentry/nextjs | >= 8.10.0, < 8.49.0 | 8.49.0 |
| Paquete de npm | @sentry/node | >= 8.10.0, < 8.49.0 | 8.49.0 |
| Paquete de npm | @sentry/nuxt | >= 8.10.0, < 8.49.0 | 8.49.0 |
| Paquete de npm | @sentry/remix | >= 8.10.0, < 8.49.0 | 8.49.0 |
| Paquete de npm | @sentry/solidstart | >= 8.10.0, < 8.49.0 | 8.49.0 |
| Paquete de npm | @sentry/sveltekit | >= 8.10.0, < 8.49.0 | 8.49.0 |
Referencias
- Vector CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L- Debilidad (CWE)
CWE-774- Plataforma
- npm
- Paquete
@sentry/astro, @sentry/aws-serverless, @sentry/bun- Publicada
- 28.01.2025
- Actualizado
- 11.10.2026 10:22
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-r5w7-f542-q2j4 - CC BY 4.0
Historial de vulnerabilidades: @sentry/astro
Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 3
- Primera → última
- 12.2023 11.2025
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 1
- Media 1
- Baja 1
Divulgaciones por año
- 2023: 1
- 2024: 0
- 2025: 2
- 2026: 0
-
Potential DoS when using ContextLines integration esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.