code-style

Warn

Audited by Socket on Oct 9, 2026

1 alert found:

Security
SecurityMEDIUM
templates/typescript-server-function.ts

The code contains a likely authorization/data-isolation bug: JavaScript `&&` drops the user ID condition from both database filters. Use Drizzle's `and(...)` helper (and enforce tenant authorization independently) to constrain operations to the intended user. No evidence of intentional malware.

Confidence: 98%Severity: 72%
Audit Metadata
Analyzed At
Oct 9, 2026, 12:34 AM
Package URL
pkg:socket/skills-sh/greyhaven-ai%2Fclaude-code-config%2Fcode-style%2F@00d8372be70399f8fdbcb99d13429ae7bbb61b4c1b96aff80e5f7884c4e7c87f