GitLab Well Architected
Cookbook navigation
Prompts / Identify Security Issues in MR

Identify Security Issues in MR

Code ReviewCode-ReviewSecopsSecuritySecureIntermediate

Identify security vulnerabilities during code review. Catch SQL injection, XSS, and other risks early.

For GitLab Duo

prompt

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]

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.