In-process file upload security for Node.js
this week
discussions
this week
Pompelmi is an in-process file upload security toolkit for Node.js. It is designed to reduce risk at the upload endpoint by scanning files locally before they are stored or later parsed/served. Instead of trusting filenames, extensions, or client-provided MIME types, it inspects file bytes and structure to detect disguised files and common abuse patterns. Checks include magic-byte validation, archive protections such as ZIP bomb, traversal, and nesting depth limits, and heuristics for risky structures like executables, polyglots, and script-bearing or macro-hinting documents. It returns structured scan reports with verdicts and reasons, enabling applications to allow, quarantine, or reject uploads with fail-closed behavior. Pompelmi is “private by design,” avoiding cloud APIs and daemon services, and provides integrations for popular Node.js frameworks (Express, Next.js, Koa, NestJS, Fastify), plus CLI and UI components.
Node.js apps store risky uploaded files due to weak MIME/extension checks.
Scans uploads in-process, inspecting bytes/archives to allow, quarantine, or reject.
Node.js teams building file upload endpoints.
Share your thoughts about this tool.
Sign in to leave a comment.
No comments yet. Be the first to leave one.