Repository navigation
fix(ask): sanitize the echoed question against quick-action execution (#2629) - #2630
IsmaelMartinez wants to merge 1 commit into
Conversation
PR Summary by QodoSanitize /ask question echo to prevent GitLab quick-action execution
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require review
Tip of the day💡 Did you know, you can group findings by type and pick your Finding display, from Minimal to Full |
|
Note: this overlaps #2628 in |
Code Review by Qodo
1. Private helper shared cross-module
|
fa9d103 to
240350f
Compare
|
Code review by qodo was updated up to the latest commit 240350f |
240350f to
077f832
Compare
|
Code review by qodo was updated up to the latest commit 077f832 |
|
Hi @naorpeled, ready and freshly rebased onto today's main. |
…The-PR-Agent#2629) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
077f832 to
4cf5b82
Compare
|
Closing here: this is tracked in private advisory GHSA-wwwp-394c-5c69, where the same fix is staged for the maintainers to merge, so a public PR is no longer the route. Thanks for the patience. |
The /ask tool sanitized the model answer against line-leading slash commands but echoed the user's raw question into the same bot comment, so GitLab quick actions in the question ran under the bot's account. This extracts the rewrites (including the
\r/case GitLab normalizes to line start) into_sanitize_slash_commands, applies it to both the echoed question and the answer, and reuses it inpr_line_questions.pywhere the\r/rewrite was missing. Fixes #2629.🤖 Generated with Claude Code