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
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| npm-Paket | @sentry/astro | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm-Paket | @sentry/aws-serverless | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm-Paket | @sentry/bun | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm-Paket | @sentry/google-cloud-serverless | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm-Paket | @sentry/nestjs | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm-Paket | @sentry/nextjs | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm-Paket | @sentry/node | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm-Paket | @sentry/nuxt | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm-Paket | @sentry/remix | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm-Paket | @sentry/solidstart | >= 8.10.0, < 8.49.0 | 8.49.0 |
| npm-Paket | @sentry/sveltekit | >= 8.10.0, < 8.49.0 | 8.49.0 |
Verweise
- CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L- Schwäche (CWE)
CWE-774- Plattform
- npm
- Paket
@sentry/astro, @sentry/aws-serverless, @sentry/bun- Veröffentlicht
- 28.01.2025
- Aktualisiert
- 11.10.2026 10:22
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-r5w7-f542-q2j4 - CC BY 4.0
Schwachstellenhistorie: @sentry/astro
Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 3
- Erste → letzte
- 12.2023 11.2025
- Ohne Fix
- 0
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Hoch 1
- Mittel 1
- Niedrig 1
Veröffentlichungen pro Jahr
- 2023: 1
- 2024: 0
- 2025: 2
- 2026: 0
-
Potential DoS when using ContextLines integration dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.