create-canvas-kit
Warn
Audited by Socket on Jun 26, 2026
1 alert found:
AnomalyAnomalykit/server.mjs
LOWAnomalyLOW
kit/server.mjs
No overt malicious/backdoor behavior is visible in the provided fragment. However, it exposes a powerful local control surface: (1) untrusted POST /action data (actionName/input) is dispatched to invoke(...), and (2) URL-derived paths are passed into serveFile(...) with no visible sanitization in this code. If invoke() lacks strict allowlisting/validation or serveFile() does not securely constrain paths, this module could enable unauthorized actions or file disclosure. Overall risk is moderate and highly implementation-dependent.
Confidence: 62%Severity: 62%
Audit Metadata