HackPath Academy

Advanced Web, API & Modern Stack

Node.js & Express Security

Server-side JS bugs: injection, SSRF, path traversal, and supply chain.

Advanced · 16 min

Open the interactive lesson →

Node.js puts JavaScript on the server, with full access to the filesystem, processes, and network. That power creates classic bugs with Node-specific sinks — essential knowledge for anyone testing (or building) a MERN/Express stack.

Node-specific sinks to hunt

// BAD — shell injection
exec(`ping -c1 ${req.query.host}`);
// GOOD — no shell, args as data
execFile('ping', ['-c1', req.query.host]);

Supply chain (npm)

Take the quiz →