code-reviewer
Warn
Audited by Socket on May 15, 2026
1 alert found:
SecuritySecurityexamples/golden-review-critical.md
MEDIUMSecurityMEDIUM
examples/golden-review-critical.md
This code fragment presents a high-risk SQL injection vulnerability because it interpolates an untrusted `id` parameter directly into an SQL statement and executes it. It also likely overexposes data by using `SELECT *` and returning the full fetched row. Remediation should include parameterized queries (bind `id`), strict input validation/type casting (e.g., integer-only), and selecting only required columns for the JSON response.
Confidence: 88%Severity: 90%
Audit Metadata