Vulnerabilities in pkg:npm/@sentry/nestjs
PACKAGECVE-2025-65944 is a MODERATE sentry's sensitive headers are leaked vulnerability (CWE-201: Insertion of Sensitive Information Into Sent Data) affecting @sentry/node libraries in the npm ecosystem. The issue involves sentry's sensitive headers are leaked when `senddefaultpii` is set to `true`. Remediation is available by upgrading affected packages to version 10.27.0.
pkg:npm/@sentry/nestjs
Vulnerability advisories affecting package pkg:npm/@sentry/nestjs. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-6465-jgvq-jhgp | CVE-2025-65944 | MODERATE | Sentry's sensitive headers are leaked when `sendDefaultPii` is set to `true` |
| GHSA-r5w7-f542-q2j4 | - | LOW | Potential DoS when using ContextLines integration |
CVE-2025-65944 at a Glance
How to Fix CVE-2025-65944
To remediate this vulnerability, upgrade all affected @sentry/node dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @sentry/node@10.27.0
npm install @sentry/astro@10.27.0
npm install @sentry/aws-serverless@10.27.0
npm install @sentry/bun@10.27.0
npm install @sentry/google-cloud-serverless@10.27.0
npm install @sentry/nestjs@10.27.0
npm install @sentry/nextjs@10.27.0
npm install @sentry/node-core@10.27.0
npm install @sentry/nuxt@10.27.0
npm install @sentry/remix@10.27.0
npm install @sentry/solidstart@10.27.0
npm install @sentry/sveltekit@10.27.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @sentry/node
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-65944, inspect your project dependencies using npm:
npm ls @sentry/node
Analyze the terminal output to locate any version of @sentry/node in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.27.0), your application is affected.
Note: The npm ls @sentry/node command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-201: Insertion of Sensitive Information Into Sent Data, where the code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor. In @sentry/node, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-65944 Affected @sentry/node Versions
12 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@sentry/node
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
|
@sentry/astro
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
|
@sentry/aws-serverless
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
|
@sentry/bun
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
|
@sentry/google-cloud-serverless
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
|
@sentry/nestjs
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
|
@sentry/nextjs
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
|
@sentry/node-core
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
|
@sentry/nuxt
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
|
@sentry/remix
|
npm |
< 10.27.0
≥ 10.11.0
|
10.27.0
|
|
@sentry/solidstart
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
|
@sentry/sveltekit
|
npm |
≥ 10.11.0
< 10.27.0
|
10.27.0
|
References
Frequently Asked Questions
What is CVE-2025-65944?
Which @sentry/node versions are affected?
What version fixes CVE-2025-65944?
Is @sentry/node affected?
Is @sentry/astro affected?
What CWE is associated with CVE-2025-65944?
How can I check npm dependencies for CVE-2025-65944?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6465-jgvq-jhgp",
"modified" : "2025-11-27T07:56:25Z",
"published" : "2025-11-24T21:52:45Z",
"aliases" : [ "CVE-2025-65944" ],
"summary" : "Sentry's sensitive headers are leaked when `sendDefaultPii` is set to `true`",
"details" : "### Impact\nIn 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.\n\nSentry’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.\n\nUsers may be impacted if:\n\n1. Their Sentry SDK configuration has `sendDefaultPii` set to `true`\n2. Their application uses one of the Node.js Sentry SDKs with version from `10.11.0` to `10.26.0` inclusively:\n- @sentry/astro\n- @sentry/aws-serverless\n- @sentry/bun\n- @sentry/google-cloud-serverless\n- @sentry/nestjs\n- @sentry/nextjs\n- @sentry/node\n- @sentry/node-core\n- @sentry/nuxt\n- @sentry/remix\n- @sentry/solidstart\n- @sentry/sveltekit\n\nUsers 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.\n\n### Patches\nThe issue has been patched in all Sentry JavaScript SDKs starting from the [10.27.0](https://github.com/getsentry/sentry-javascript/releases/tag/10.27.0) version.\n\n### Workarounds\nSentry strongly encourage customers to upgrade the SDK to the latest available version, [10.27.0](https://github.com/getsentry/sentry-javascript/releases/tag/10.27.0) or later.\nIf it is not possible, consider setting `sendDefaultPii: false` to avoid unintentionally sending sensitive headers. See [here](https://docs.sentry.io/platforms/javascript/guides/node/#step-2-configure) for documentation.\n\n### Resources\n* https://develop.sentry.dev/sdk/expected-features/data-handling/#sensitive-data\n* https://github.com/getsentry/sentry-javascript/releases/tag/10.11.0\n* https://github.com/getsentry/sentry-javascript/pull/17475\n* https://docs.sentry.io/platforms/javascript/guides/node/data-management/data-collected/#cookies",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/node"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/astro"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/aws-serverless"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/bun"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/google-cloud-serverless"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/nestjs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/nextjs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/node-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/nuxt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/remix"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/solidstart"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@sentry/sveltekit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.11.0"
}, {
"fixed" : "10.27.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry-javascript/security/advisories/GHSA-6465-jgvq-jhgp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-65944"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry-javascript/pull/17475"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry-javascript/pull/18311"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry-javascript/commit/a820fa2891fdcf985b834a5b557edf351ec54539"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/getsentry/sentry-javascript"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry-javascript/releases"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry-javascript/releases/tag/10.11.0"
}, {
"type" : "WEB",
"url" : "https://github.com/getsentry/sentry-javascript/releases/tag/10.27.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-201" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-24T21:52:45Z",
"nvd_published_at" : "2025-11-25T01:15:46Z"
}
}