ts-effect-v4
Warn
Audited by Socket on Aug 4, 2026
1 alert found:
SecuritySecurityexamples/01_effect/02_services/20_layer-composition.ts
MEDIUMSecurityMEDIUM
examples/01_effect/02_services/20_layer-composition.ts
No clear evidence of malicious/backdoor behavior in this module. However, the `findById` implementation directly interpolates attacker-controlled `id` into an SQL string and executes it, creating a high-likelihood SQL injection risk if the SQL template-tag does not safely parameterize/escape this pattern. Remediate by using the library’s parameter binding/prepared-statement mechanisms (placeholders/bindings) or strict validation/encoding of `id` before building the query.
Confidence: 78%Severity: 78%
Audit Metadata