Skip to main content

CVE-2025-65944 — Vulnerability in @sentry/nestjs — CVE Details

MEDIUM

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

Published November 24, 2025Updated August 7, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.66%). Schedule for your next planned update.

Does your project use an affected @sentry/nestjs version?

Paste your package-lock.json to check it for CVE-2025-65944 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

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

Advisory Timeline

  • First published November 24, 2025 (367 days ago).
  • Last revised August 7, 2026 — 255 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @sentry/nestjs to 10.27.0 or later
npm install @sentry/nestjs@10.27.0
npm
Update @sentry/google-cloud-serverless to 10.27.0 or later
npm install @sentry/google-cloud-serverless@10.27.0
npm
Update @sentry/node-core to 10.27.0 or later
npm install @sentry/node-core@10.27.0
npm
Update @sentry/nextjs to 10.27.0 or later
npm install @sentry/nextjs@10.27.0
npm
Update @sentry/nuxt to 10.27.0 or later
npm install @sentry/nuxt@10.27.0
npm
Update @sentry/aws-serverless to 10.27.0 or later
npm install @sentry/aws-serverless@10.27.0
npm
Update @sentry/sveltekit to 10.27.0 or later
npm install @sentry/sveltekit@10.27.0
npm
Update @sentry/solidstart to 10.27.0 or later
npm install @sentry/solidstart@10.27.0
npm
Update @sentry/astro to 10.27.0 or later
npm install @sentry/astro@10.27.0
npm
Update @sentry/bun to 10.27.0 or later
npm install @sentry/bun@10.27.0
npm
Update @sentry/remix to 10.27.0 or later
npm install @sentry/remix@10.27.0
npm
Update @sentry/node to 10.27.0 or later
npm install @sentry/node@10.27.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (12)

Affects 1 ecosystem: npm (12).

PackageFixed In
@sentry/nestjs npm · Affected: All versions10.27.0
@sentry/google-cloud-serverless npm · Affected: All versions10.27.0
@sentry/node-core npm · Affected: All versions10.27.0
@sentry/nextjs npm · Affected: All versions10.27.0
@sentry/nuxt npm · Affected: All versions10.27.0
@sentry/aws-serverless npm · Affected: All versions10.27.0
@sentry/sveltekit npm · Affected: All versions10.27.0
@sentry/solidstart npm · Affected: All versions10.27.0
@sentry/astro npm · Affected: All versions10.27.0
@sentry/bun npm · Affected: All versions10.27.0
@sentry/remix npm · Affected: All versions10.27.0
@sentry/node npm · Affected: All versions10.27.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2025-65944?
Sentry's sensitive headers are leaked when `sendDefaultPii` is set to `true`. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 7.9/10).
How do I check if my project is affected by CVE-2025-65944?
CVE-2025-65944 affects @sentry/nestjs, @sentry/google-cloud-serverless and @sentry/node-core (and 9 more). It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-65944 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.9

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.66%
EPSS percentile: 46.6

This is a below-median EPSS score — only 46.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-6465-jgvq-jhgp

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json