Repository navigation
feat(core): Gate URL fragments behind urlQueryParams - #26753
Merged
Merged
Conversation
Fragments can carry the same secrets as query strings: OAuth and OIDC login redirects return tokens in the fragment (#access_token=...), and hash-based routing puts its query string there (#/callback?token=...). Following data collection spec 0.19.0, collected URLs and url.fragment now filter key=value pairs in the fragment like query params, and drop the fragment when urlQueryParams is off. Anchors and hash route paths are kept as-is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
bugbot run |
Contributor
size-limit report 📦Compared: e59c7a1 (PR test merge using develop at 127485c) Against: 127485c (develop) · base run #67503 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 1 not successful, 63 successful. See the run.
Successful checks
|
Cover the fetch span wiring end to end: sensitive fragment pairs are filtered by default, and the fragment is dropped when urlQueryParams is off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit b254d2f. Configure here.
s1gr1d
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The
urlQueryParamsoption now also applies to URL fragments.key=valuepairs in a fragment are filtered like query params, and the fragment is dropped whenurlQueryParamsis off. This coversurl.full,url.fragment,request.urland breadcrumbs. Anchors and hash route paths (#details,#/settings) are kept as-is.Why
Fragments can carry the same secrets as query strings. OAuth and OIDC login redirects return tokens in the fragment (
#access_token=...), and hash-based routing puts its query string there (#/callback?token=...). This follows data collection spec 0.19.0 (getsentry/sentry-docs#20904). Theno-unfiltered-url-attributeslint rule now also checksurl.fragment, so new call sites can't skip the filter.