Opus finding
Telemetry uses string interpolation for ${RETENTION_LIMIT} and ${now} in SQL — not a vuln here but a footgun
lowmaintainabilityhigh
- src/providers/telemetry.ts:170-172
- src/providers/telemetry.ts:209-218
Both values are currently safe (number constants), but mixing exec() string interpolation with prepare()/run() bind parameters elsewhere is inconsistent and invites future injection bugs if these constants ever become user-configurable.
Recommendation
Use prepared statements with bind parameters consistently.