| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Issue/PR title and body reads already run through sanitize.Sanitize. PR review bodies, review-thread comments, and Discussion title/body/comments still returned raw attacker-controlled text into the model context. Apply the same sanitize control on those sibling read paths. Clean content is unchanged; lockdown filtering is untouched.
| Back | FazBrowse Home | New Git URL |
Problem
Issue and PR title/body reads already run through sanitize.Sanitize (invisible Unicode tags, BiDi overrides, HTML, code-fence metadata) before content reaches the model. Several sibling user-authored read paths still returned raw text:
A hostile review or Discussion post could therefore carry hidden prompt-injection payloads into the context window, bypassing the baseline control its sibling issue/PR paths apply. Related prior: #3035 (issue comments + sub-issues).
Fix
Apply the same sanitize.Sanitize on those converters and Discussion response builders. No behavior change for clean content; lockdown-mode filtering is untouched and orthogonal.
Testing
go test ./pkg/github/ ./pkg/sanitize/ pass.
Made with Cursor