Code review nodejs

From NoorQureshi/security-skills · View interactive version

Code review nodejs is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Security review of Node.js / JavaScript code — dangerous sinks and Express/framework pitfalls. Load when reviewing a Node/JS codebase/PR, on package.json + Express/Next/Nest, or "review this Node app". Signals: child_process, eval, Function, prototype pollution, JWT, Mongoose/Sequelize.

How to use this skill

Skill file

Node.js / JavaScript security code review

When it applies

Reading Node/JS source (Express, Next.js, NestJS, a package). Language companion to

code-review-methodology — the exact sinks and framework gotchas to grep and trace.

Sinks & patterns (grep, then trace to user input)

template strings in commands.

object merges, query parsers — __proto__/constructor keys (→ web-prototype-pollution).

{$gt:''}); Sequelize .query()/literal.

dangerouslySetInnerHTML (React), v-html (Vue).

Framework specifics

session secret, no per-object authz (IDOR/BOLA), app.use order bypassing auth middleware.

(→ web-auth-jwt), secret in code.

Method

rg -n "child_process|eval\(|new Function|innerHTML|dangerouslySetInnerHTML|\.merge\(|__proto__|node-serialize";

run njsscan . and semgrep --config auto; trace user input to each sink.

Gotchas

References

njsscan; Semgrep JS/TS rules; OWASP Node.js & NodeGoat; Express security best practices.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.