You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Security Bug Report - Bun response headers leaked via transaction context (Set-Cookie exfiltration) #19790
A new security bug report has been reported by the bug bounty program.
Gemini Analysis Result
Possible code path of the root cause:None Possible reason: The bug report indicates that response headers are being serialized into performance telemetry and captured in transaction payloads. getCapturedScopesOnSpan stores data into isolationScope and this scope is merged into emitted events, which are related to performance telemetry. The CODEOWNERS file has entries under /src/sentry/api/endpoints/organization_events_spans_performance.py and related paths which point to the getsentry/data-browsing team. This team seems likely to own code that captures and serializes span data, making them the most likely owner. Possible owner:getsentry/data-browsing
Confidence score: 65
** If you believe the issue is incorrectly assigned, please assign it to the correct team or let the security team know. Thank you!**
To reduce risk of accidental information disclosure, we are intentionally not exposing full vulnerability details here Please see the parent ticket for the full report: VULN-1305
I checked and we set response headers in Bun and Deno. These are the only two occurences. In Node, we only set the response status code on the response context, which is fine.
I think for a short-term fix, we can remove the headers in both packages for now. Long-term, we should probably employ the same strategy we use for http request headers when we set them as attributes (already spec'd in conventions).
Activity
linear-code commentedon Mar 12, 2026
JS-1934
nehaaprasad commentedon Mar 15, 2026
Hello! @Jeffreyhung please check out this PR
Lms24 commentedon Mar 16, 2026
I checked and we set response headers in Bun and Deno. These are the only two occurences. In Node, we only set the response status code on the
responsecontext, which is fine.I think for a short-term fix, we can remove the headers in both packages for now. Long-term, we should probably employ the same strategy we use for http request headers when we set them as attributes (already spec'd in conventions).
feat(bun): Set http response header attributes instead of response co…
feat(deno): Set http response header attributes instead of response c…
github-actions commentedon Mar 17, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #19821, which was included in the 10.44.0 release.