Skip to content
Back to ml-scanner report
SecurityMedium

Sensitive Payload Logged at INFO

api/predict.py:12

What's going on

The inference gateway logs the full request body, silently capturing user-provided text that may include PII.

Why it matters

Unaddressed, this degrades the reliability and security of the codebase and accelerates technical debt.

api/predict.py:12

Recommended Fix

Replace the inline query with a parameterized statement and validate the id before it ever reaches the database. A regression test is generated alongside the patch.

Before
1 
After
1 
  1. Uploaddone
  2. Analyzedone
  3. Finddone
  4. Explainactive
  5. Fixupcoming
  6. Testupcoming
  7. Verifyupcoming