Title: Apply consistent sanitization to untrusted GitHub response fields · Issue #3106 · github/github-mcp-server · GitHub
Open Graph Title: Apply consistent sanitization to untrusted GitHub response fields · Issue #3106 · github/github-mcp-server
X Title: Apply consistent sanitization to untrusted GitHub response fields · Issue #3106 · github/github-mcp-server
Description: Describe the bug Sanitization is applied by individual response converters, which leaves inconsistent coverage across issue comments, pull request bodies, reviews, review comments, releases, commit messages, and similar user-authored fie...
Open Graph Description: Describe the bug Sanitization is applied by individual response converters, which leaves inconsistent coverage across issue comments, pull request bodies, reviews, review comments, releases, commit...
X Description: Describe the bug Sanitization is applied by individual response converters, which leaves inconsistent coverage across issue comments, pull request bodies, reviews, review comments, releases, commit...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3106
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Apply consistent sanitization to untrusted GitHub response fields","articleBody":"### Describe the bug\n\nSanitization is applied by individual response converters, which leaves inconsistent coverage across issue comments, pull request bodies, reviews, review comments, releases, commit messages, and similar user-authored fields. Centralize or systematically audit response sanitization while preserving source-code and file-content fidelity.\n\n### Affected version\n\nCurrent `main` as of 2026-08-19.\n\n### Steps to reproduce the behavior\n\n1. Return user-authored text through different GitHub tools.\n2. Compare fields processed by `sanitize.Sanitize` with fields returned directly.\n3. Observe inconsistent filtering across equivalent untrusted-text surfaces.\n\n### Expected vs actual behavior\n\nExpected: equivalent user-authored text is sanitized consistently, with a content-safe strategy for source code and file contents.\n\nActual: filtering depends on the converter used by each tool.\n\n### Logs\n\nN/A","author":{"url":"https://github.com/SamMorrowDrums","@type":"Person","name":"SamMorrowDrums"},"datePublished":"2026-08-19T12:06:24Z","url":"https://github.com/github/github-mcp-server/issues/3106"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:646a7cc1-82ed-a4cf-6f57-7847e00c11c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D88E:E358D:BB91:10DA6:6B06AEAD |
| html-safe-nonce | 7f43a597699106b60c549613d1061769184bc6b1ca5ddbd1c531667c7f8944de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODhFOkUzNThEOkJCOTE6MTBEQTY6NkIwNkFFQUQiLCJ2aXNpdG9yX2lkIjoiNTg3MTkzNzI3MDQ3ODcyMTc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 52ba02931466306b5dafa0b4e38cbd2a1fbdcc5bd7ac76f8f1f996de6a2e122c |
| hovercard-subject-tag | issue:5192424439 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3106/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd32390b6e49670f55840ae4a9f6669a2a99b088da1a64092683d575989c26bb/github/github-mcp-server/issues/3106 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd32390b6e49670f55840ae4a9f6669a2a99b088da1a64092683d575989c26bb/github/github-mcp-server/issues/3106 |
| og:image:alt | Describe the bug Sanitization is applied by individual response converters, which leaves inconsistent coverage across issue comments, pull request bodies, reviews, review comments, releases, commit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SamMorrowDrums |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0599d77dd29476ebb6797bcafb4d4987ea6c8fc9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width