Use the prompt
Include the changed code and how requests reach it. Authentication and permission checks may live outside the diff, so surrounding code can change how a finding should be understood.
Identify security vulnerabilities during code review. Catch SQL injection, XSS, and other risks early.
For GitLab Duo
Review this MR for security issues:
1. SQL injection risks
2. XSS vulnerabilities
3. Authentication/authorization problems
4. Data exposure risks
5. Input validation issues
[MR URL or paste code]Include the changed code and how requests reach it. Authentication and permission checks may live outside the diff, so surrounding code can change how a finding should be understood.