nodejs-backend

Warn

Audited by Socket on Sep 11, 2026

2 alerts found:

SecurityAnomaly
SecurityMEDIUM
evals/files/export.route.ts

The fragment does not show intentional malware or supply-chain sabotage. It contains significant security concerns: an unvalidated filesystem path in the download endpoint can enable path traversal and local-file disclosure; the table parameter may enable SQL injection or unauthorized table access depending on db.selectAll; and CSV output is not safely escaped. Error responses may leak internal details. The middleware also appears to omit next, causing a likely request-processing bug. Review and harden ./db.ts, validate or allowlist table and file identifiers, safely serialize CSV, and avoid returning raw error details.

Confidence: 97%Severity: 78%
AnomalyLOW
evals/files/server.ts

No clear malicious or supply-chain attack behavior is present. The SQL statements are parameterized and there is no obfuscation or suspicious exfiltration. Main security concerns are client-controlled tenant selection without visible authorization, unauthenticated file import, and disclosure of stack traces and internal error details. The apparent missing closing parenthesis may also make the supplied fragment syntactically invalid.

Confidence: 97%Severity: 63%
Audit Metadata
Analyzed At
Sep 11, 2026, 03:16 PM
Package URL
pkg:socket/skills-sh/lynricsy%2Fhyperskills%2Fnodejs-backend%2F@ff023f3083eb69905d45719c8057a911999ecfd2214c274b136a61b8c0c128f8
Security Audit — socket — nodejs-backend