Skip to content

fix(browser): Apply urlQueryParams to breadcrumb and element timing URLs - #25289

Merged
JPeer264 merged 1 commit into
jp/browser-sensitive-query-params-transactionsfrom
jp/browser-breadcrumb-element-timing-query-params
Oct 12, 2026
Merged

JPeer264 merged 1 commit into
jp/browser-sensitive-query-params-transactionsfrom
jp/browser-breadcrumb-element-timing-query-params

Conversation

@JPeer264

Copy link
Copy Markdown
Member

follow up to #25262

This applies dataCollection.urlQueryParams to the URLs in the fetch, XHR and navigation breadcrumbs and to the ui.element.url attribute of elementTimingIntegration. These still sent sensitive query values such as ?jwt=... to Sentry.

Sentry events

Before (11.6.0), jwt=sensitive-jwt-value in the breadcrumbs: https://sentry-sdks.sentry.io/issues/7787761489/events/2bfc6630501c4314bf84b884a4afb1e9/
After (this PR), jwt=[Filtered]: https://sentry-sdks.sentry.io/issues/7787761463/events/6ae067a147b84e6eb33553ae7ce217c7/

… URLs

The fetch, XHR and navigation breadcrumbs and the `ui.element.url` attribute
of `elementTimingIntegration` still sent sensitive query values such as
`?token=...` to Sentry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JPeer264
JPeer264 added this pull request to stack #25291 October 12, 2026 13:36
@JPeer264

Copy link
Copy Markdown
Member Author

bugbot run

@JPeer264 JPeer264 self-assigned this Oct 12, 2026
@JPeer264
JPeer264 marked this pull request as ready for review October 12, 2026 13:37
@JPeer264
JPeer264 requested a review from a team as a code owner October 12, 2026 13:37
@JPeer264
JPeer264 requested review from Lms24, logaretm and msonnb and removed request for a team October 12, 2026 13:37

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1aa2891. Configure here.

from,
to,
from: filterCollectedUrl(from),
to: filterCollectedUrl(to),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filterCollectedUrl omits in-scope client

Low Severity

This is more an "is this necessary" check than a functional break: filterCollectedUrl is called without the in-scope client, so it falls back to getClient(). The review guidelines ask to pass the client when one is available so dataCollection.urlQueryParams comes from the owning client, not the current scope. Flagged because that rule is in the review rules file.

Additional Locations (1)
Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit 1aa2891. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 29.84 kB +0.07% +18 B 🔺
@sentry/browser - with treeshaking flags 27.97 kB +0.05% +13 B 🔺
@sentry/browser - with treeshaking flags tracing without tracing 27.88 kB +0.06% +16 B 🔺
@sentry/browser (incl. Tracing) 51.93 kB +0.09% +46 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 51.95 kB +0.1% +47 B 🔺
@sentry/browser (incl. Tracing, Profiling) 54.88 kB +0.09% +47 B 🔺
@sentry/browser (incl. Tracing, Replay) 91.68 kB +0.05% +39 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.58 kB +0.09% +69 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 96.4 kB +0.05% +40 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 109.38 kB +0.04% +40 B 🔺
@sentry/browser (incl. Feedback) 47.36 kB +0.03% +13 B 🔺
@sentry/browser (incl. sendFeedback) 34.89 kB +0.09% +28 B 🔺
@sentry/browser (incl. FeedbackAsync) 40.01 kB +0.08% +31 B 🔺
@sentry/browser (incl. Metrics) 30.86 kB +0.03% +8 B 🔺
@sentry/browser (incl. Logs) 31.15 kB +0.03% +8 B 🔺
@sentry/browser (incl. Metrics & Logs) 31.79 kB +0.04% +11 B 🔺
@sentry/react 31.66 kB -0.01% -3 B 🔽
@sentry/react (incl. Tracing) 54.28 kB +0.13% +66 B 🔺
@sentry/vue 37.91 kB +0.07% +23 B 🔺
@sentry/vue (incl. Tracing) 54.87 kB +0.11% +56 B 🔺
@sentry/svelte 29.87 kB +0.06% +16 B 🔺
@sentry/remix (Remix 3 client bundle) 56.92 kB +0.08% +44 B 🔺
CDN Bundle 31.59 kB +0.06% +18 B 🔺
CDN Bundle (incl. Tracing) 52.44 kB +0.09% +42 B 🔺
CDN Bundle (incl. Logs, Metrics) 33.78 kB +0.07% +22 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 54.4 kB +0.1% +52 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 74.71 kB +0.04% +29 B 🔺
CDN Bundle (incl. Tracing, Replay) 90.12 kB +0.06% +54 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92.07 kB +0.07% +56 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 96.28 kB +0.06% +49 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.25 kB +0.06% +53 B 🔺
CDN Bundle - uncompressed 93.13 kB +0.08% +71 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 155.75 kB +0.08% +117 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.66 kB +0.08% +75 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 161.71 kB +0.08% +121 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.7 kB +0.04% +75 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 275.92 kB +0.05% +117 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 281.86 kB +0.05% +121 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 289.62 kB +0.05% +117 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 295.56 kB +0.05% +121 B 🔺
@sentry/nextjs (client) 56.65 kB +0.12% +64 B 🔺
@sentry/sveltekit (client) 52.33 kB +0.12% +62 B 🔺
@sentry/core/server 40.87 kB - -
@sentry/core/browser 13.73 kB - -
@sentry/node 151.69 kB +0.01% +9 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.77 kB - -
@sentry/node - without tracing 94.25 kB +0.02% +11 B 🔺
@sentry/node - without channel injection 129.86 kB +0.01% +10 B 🔺
@sentry/aws-serverless 102.42 kB +0.01% +6 B 🔺
@sentry/cloudflare (withSentry) - minified 210.34 kB - -
@sentry/cloudflare (withSentry) 521.4 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 228.01 kB - -

View base workflow run

@JPeer264
JPeer264 merged commit 236c0ce into develop Oct 12, 2026
242 checks passed
@JPeer264
JPeer264 deleted the jp/browser-breadcrumb-element-timing-query-params branch October 12, 2026 14:18
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.

2 participants