Skip to content

fix(core): Apply the sensitive denylist to cookie headers and configured fetch headers - #24090

Open
s1gr1d wants to merge 2 commits into
developfrom
sig/dc-header-cookie-denylist
Open

fix(core): Apply the sensitive denylist to cookie headers and configured fetch headers#24090
s1gr1d wants to merge 2 commits into
developfrom
sig/dc-header-cookie-denylist

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Sep 4, 2026

Copy link
Copy Markdown
Member

Two ways a sensitive value slipped past the denylist.

A Cookie segment without an = became the attribute key itself, so Cookie: <opaque-token> shipped the token as http.request.header.cookie.<opaque-token>. No denylist can scrub a key. Those segments are dropped now, and a header with nothing extractable falls back to [Filtered], which is the documented behaviour.

Headers listed in headersToSpanAttributes skipped the denylist entirely, so authorization went out in the clear. The spec says an allowlist never exempts a sensitive name, so those are filtered too.

Fixes #24085

…red fetch headers

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.7 kB - -
@sentry/browser - with treeshaking flags 27.01 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.9 kB - -
@sentry/browser (incl. Tracing) 49.08 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 49.08 kB - -
@sentry/browser (incl. Tracing, Profiling) 52 kB - -
@sentry/browser (incl. Tracing, Replay) 88.63 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.86 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 93.31 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 106.26 kB - -
@sentry/browser (incl. Feedback) 46.19 kB - -
@sentry/browser (incl. sendFeedback) 33.76 kB - -
@sentry/browser (incl. FeedbackAsync) 38.86 kB - -
@sentry/browser (incl. Metrics) 29.67 kB - -
@sentry/browser (incl. Logs) 29.95 kB - -
@sentry/browser (incl. Metrics & Logs) 30.6 kB - -
@sentry/react 30.46 kB - -
@sentry/react (incl. Tracing) 51.29 kB - -
@sentry/vue 35.93 kB - -
@sentry/vue (incl. Tracing) 51.35 kB - -
@sentry/svelte 28.72 kB - -
CDN Bundle 30.44 kB - -
CDN Bundle (incl. Tracing) 49.61 kB - -
CDN Bundle (incl. Logs, Metrics) 32.67 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 51.54 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 73.33 kB - -
CDN Bundle (incl. Tracing, Replay) 87.17 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 89.03 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 93.1 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 95.04 kB - -
CDN Bundle - uncompressed 90.17 kB - -
CDN Bundle (incl. Tracing) - uncompressed 147.84 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.55 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 153.62 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.86 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 267.48 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 273.25 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.18 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 286.94 kB - -
@sentry/nextjs (client) 53.9 kB - -
@sentry/sveltekit (client) 49.52 kB - -
@sentry/core/server 40.97 kB +0.01% +2 B 🔺
@sentry/core/browser 13.53 kB - -
@sentry/node 124.83 kB +0.04% +41 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.51 kB - -
@sentry/node - without tracing 88.53 kB +0.06% +45 B 🔺
@sentry/node - without channel injection 104.14 kB +0.04% +40 B 🔺
@sentry/aws-serverless 96.9 kB +0.05% +44 B 🔺
@sentry/cloudflare (withSentry) - minified 201.62 kB +0.02% +22 B 🔺
@sentry/cloudflare (withSentry) 501.39 kB -0.01% -38 B 🔽

View base workflow run

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@s1gr1d
s1gr1d marked this pull request as ready for review September 4, 2026 13:41
@s1gr1d
s1gr1d requested review from a team as code owners September 4, 2026 13:41
@s1gr1d
s1gr1d requested review from isaacs and mydea and removed request for a team September 4, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sensitive values bypass the denylist in header and cookie collection

1 participant