Medium

Sentry's sensitive headers are leaked when `sendDefaultPii` is set to `true`

  • Disclosed: 24.11.2025
  • Updated: 11.10.2026 10:22

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

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @sentry/astro >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/aws-serverless >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/bun >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/google-cloud-serverless >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/nestjs >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/nextjs >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/node >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/node-core >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/nuxt >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/remix >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/solidstart >= 10.11.0, < 10.27.0 10.27.0
npm package @sentry/sveltekit >= 10.11.0, < 10.27.0 10.27.0

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:L
Weakness (CWE)
CWE-201
Platform
npm
Package
@sentry/astro, @sentry/aws-serverless, @sentry/bun
Disclosed
24.11.2025
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-6465-jgvq-jhgp - CC BY 4.0

Vulnerability history: @sentry/astro

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
3
First → latest
12.2023 11.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 1
  • Medium 1
  • Low 1

Disclosures per year

  1. 2023: 1
  2. 2024: 0
  3. 2025: 2
  4. 2026: 0
  1. Sentry's sensitive headers are leaked when `sendDefaultPii` is set to `true` this entry
    Medium CVE-2025-65944 >= 10.11.0, < 10.27.0 10.27.0
  2. Low · 3.7 ghsa-r5w7-f542-q2j4 >= 8.10.0, < 8.49.0 8.49.0
  3. High · 7.5 CVE-2023-50249 >= 7.78.0, < 7.87.0 7.87.0

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.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.