Skip to content

Sensitive query parameters leak to Sentry in event Referer HTTP header #25303

Closed

Description

@mfb

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

11.7.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

I set dataCollection.userInfo to false and otherwise didn't configure dataCollection.

Steps to Reproduce

I submitted a form on a page with a sensitive query parameter in the URL, such as ?jwt=baz. This resulted in the document having a Referer with the sensitive query parameter. I triggered a JS exception and looked at the event payload. The Referer is automatically captured in the event under request.headers.

Expected Result

Ideally, the Referer would be processed as a URL, and sensitive query params could be filtered?

Actual Result

The Referer header has the unfiltered URL.

Additional Context

This is a followup on #25247

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Activity

  1. linear-code commented on Oct 12, 2026

    @linear-code
  2. self-assigned this
    on Oct 13, 2026
  3. JPeer264 commented on Oct 13, 2026

    @JPeer264
    Member

    Thanks for writing in. I btw already opened a PR to add this feature - looks quite important to have in.

  4. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Oct 13, 2026
  5. added a commit that references this issue on Oct 14, 2026
    f4ae6c5
  6. github-actions commented on Oct 15, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #25324, which was included in the 11.8.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BrowserBugjavascriptPull requests that update javascript code

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions