CVE-2025-65944
JSON

5.1medium

Sentry-Javascript deals with leaked sensitive headers when `sendDefaultPii` is set to `true`

Severity
5.1medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.66% (higher than 46% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-6465-jgvq-jhgp

Description

Sentry-Javascript is an official Sentry SDKs for JavaScript. From version 10.11.0 to before 10.27.0, when a Node.js application using the Sentry SDK has sendDefaultPii: true it is possible to inadvertently send certain sensitive HTTP headers, including the Cookie header, to Sentry. Those headers would be stored within a Sentry organization as part of the associated trace. A person with access to the Sentry organization could then view and use these sensitive values to impersonate or escalate their privileges within the application. This issue has been patched in version 10.27.0.

Affected

Product or packageVersionsReported by
getsentry sentry-javascript>= 10.11.0, < 10.27.0CVE List
@sentry/node (npm)from 10.11.0 before 10.27.0GitHub Advisory Database
@sentry/astro (npm)from 10.11.0 before 10.27.0GitHub Advisory Database
@sentry/aws-serverless (npm)from 10.11.0 before 10.27.0GitHub Advisory Database
@sentry/bun (npm)from 10.11.0 before 10.27.0GitHub Advisory Database
@sentry/google-cloud-serverless (npm)from 10.11.0 before 10.27.0GitHub Advisory Database
@sentry/nestjs (npm)from 10.11.0 before 10.27.0GitHub Advisory Database
@sentry/nextjs (npm)from 10.11.0 before 10.27.0GitHub Advisory Database
@sentry/node-core (npm)from 10.11.0 before 10.27.0GitHub Advisory Database
@sentry/nuxt (npm)from 10.11.0 before 10.27.0GitHub Advisory Database
@sentry/remix (npm)from 10.11.0 before 10.27.0GitHub Advisory Database
@sentry/solidstart (npm)from 10.11.0 before 10.27.0GitHub Advisory Database

All scores

GitHub_M5.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:L

Classification

CWE-201

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Sentry-Javascript is an official Sentry SDKs for JavaScript. From version 10.11.0 to before 10.27.0, when a Node.js application using the Sentry SDK has sendDefaultPii: true it is possible to inadvertently send certain sensitive HTTP headers, including the Cookie header, to Sentry. Those headers would be stored within a Sentry organization as part of the associated trace. A person with access to the Sentry organization could then view and use these sensitive values to impersonate or escalate their privileges within the application. This issue has been patched in version 10.27.0.

GitHub Advisory Database
Impact

In version 10.11.0, a change to how the SDK collects request data in Node.js applications caused certain incoming HTTP headers to be added as trace span attributes. When sendDefaultPii: true was set, a few headers that were previously redacted - including Authorization and Cookie - were unintentionally allowed through.

Sentry’s server-side scrubbing (handled by Sentry's Relay edge proxy) normally serves as a second layer of protection. However, because it relied on the same matching logic as the SDK, it also failed to catch these headers in this case.

Users may be impacted if:

  1. Their Sentry SDK configuration has sendDefaultPii set to true
  2. Their application uses one of the Node.js Sentry SDKs with version from 10.11.0 to 10.26.0 inclusively:
  • @sentry/astro
  • @sentry/aws-serverless
  • @sentry/bun
  • @sentry/google-cloud-serverless
  • @sentry/nestjs
  • @sentry/nextjs
  • @sentry/node
  • @sentry/node-core
  • @sentry/nuxt
  • @sentry/remix
  • @sentry/solidstart
  • @sentry/sveltekit

Users can check if their project was affected, by visiting Explore → Traces and searching for “http.request.header.authorization”, “http.request.header.cookie” or similar. Any potentially sensitive values will be specific to users' applications and configurations.

Patches

The issue has been patched in all Sentry JavaScript SDKs starting from the 10.27.0 version.

Workarounds

Sentry strongly encourage customers to upgrade the SDK to the latest available version, 10.27.0 or later. If it is not possible, consider setting sendDefaultPii: false to avoid unintentionally sending sensitive headers. See here for documentation.

Resources
NVD (es)

Sentry-Javascript es un SDK oficial de Sentry para JavaScript. Desde la versión 10.11.0 hasta la 10.27.0, cuando una aplicación Node.js que utiliza el SDK de Sentry tiene sendDefaultPii: true, es posible enviar inadvertidamente ciertos encabezados HTTP sensibles, incluyendo el encabezado Cookie, a Sentry. Esos encabezados se almacenarían dentro de una organización de Sentry como parte del rastreo asociado. Una persona con acceso a la organización de Sentry podría entonces ver y usar estos valores sensibles para suplantar o escalar sus privilegios dentro de la aplicación. Este problema ha sido parcheado en la versión 10.27.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-65944 changed 2025-11-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-6465-jgvq-jhgp changed 2026-08-07CC-BY-4.0
NVDCVE-2025-65944 changed 2026-10-18Public domain