CVE-2025-65944 — Vulnerability in @sentry/nestjs — CVE Details
Sentry's sensitive headers are leaked when `sendDefaultPii` is set to `true`
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.
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:
- Their Sentry SDK configuration has
sendDefaultPiiset totrue - Their application uses one of the Node.js Sentry SDKs with version from
10.11.0to10.26.0inclusively:
- @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
- https://develop.sentry.dev/sdk/expected-features/data-handling/#sensitive-data
- https://github.com/getsentry/sentry-javascript/releases/tag/10.11.0
- https://github.com/getsentry/sentry-javascript/pull/17475
- https://docs.sentry.io/platforms/javascript/guides/node/data-management/data-collected/#cookies
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 install @sentry/nestjs@10.27.0
npm install @sentry/google-cloud-serverless@10.27.0
npm install @sentry/node-core@10.27.0
npm install @sentry/nextjs@10.27.0
npm install @sentry/nuxt@10.27.0
npm install @sentry/aws-serverless@10.27.0
npm install @sentry/sveltekit@10.27.0
npm install @sentry/solidstart@10.27.0
npm install @sentry/astro@10.27.0
npm install @sentry/bun@10.27.0
npm install @sentry/remix@10.27.0
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).
| Package | Fixed In |
|---|---|
| @sentry/nestjs npm · Affected: All versions | 10.27.0 |
| @sentry/google-cloud-serverless npm · Affected: All versions | 10.27.0 |
| @sentry/node-core npm · Affected: All versions | 10.27.0 |
| @sentry/nextjs npm · Affected: All versions | 10.27.0 |
| @sentry/nuxt npm · Affected: All versions | 10.27.0 |
| @sentry/aws-serverless npm · Affected: All versions | 10.27.0 |
| @sentry/sveltekit npm · Affected: All versions | 10.27.0 |
| @sentry/solidstart npm · Affected: All versions | 10.27.0 |
| @sentry/astro npm · Affected: All versions | 10.27.0 |
| @sentry/bun npm · Affected: All versions | 10.27.0 |
| @sentry/remix npm · Affected: All versions | 10.27.0 |
| @sentry/node npm · Affected: All versions | 10.27.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-201
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.9 score means for each attack dimension.
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
References
- https://github.com/getsentry/sentry-javascript/security/advisories/GHSA-6465-jgvq-jhgpWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-65944ADVISORY
- https://github.com/getsentry/sentry-javascript/pull/17475WEB
- https://github.com/getsentry/sentry-javascript/pull/18311WEB
- https://github.com/getsentry/sentry-javascript/commit/a820fa2891fdcf985b834a5b557edf351ec54539WEB
- https://github.com/getsentry/sentry-javascriptPACKAGE
- https://github.com/getsentry/sentry-javascript/releasesWEB
- https://github.com/getsentry/sentry-javascript/releases/tag/10.11.0WEB
- https://github.com/getsentry/sentry-javascript/releases/tag/10.27.0WEB
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
Significant impact if exploited, or exploitable with modest effort.
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
Related CVEs
- CVE-2026-114139CRITICAL
Sentry-Javascript: Middleware Bypass when using Tunnel route
- CVE-2026-94543MEDIUM
Next.js has cache poisoning of SSG and ISR pages in self-hosted applications
- CVE-2026-94545MEDIUM
Satori-generated SVG has improper escaping