| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…d paths Sibling of github#3035/github#3039: convertToMinimalRelease and convertToMinimalStatusUpdate still returned raw user-authored text to the model. Apply sanitize.Sanitize to release name/body and status-update body. Signed-off-by: Sasha Mitchell <sash.t.mitchell@gmail.com>
There was a problem hiding this comment.
Hi i am
ali
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Problem
Issue/PR/review/Discussion read paths already run through sanitize.Sanitize (invisible Unicode tags, BiDi overrides, HTML, code-fence metadata) before content reaches the model (#3035 / #3039). Two sibling user-authored surfaces still returned raw text:
A hostile release note or status-update body could therefore carry hidden prompt-injection payloads into the context window, bypassing the baseline control its siblings apply.
Fix
Apply the same sanitize.Sanitize on those converters. No behavior change for clean content.
Testing
Also: go test ./pkg/github/ ./pkg/sanitize/ locally green for the touched packages.
Made with Cursor