Skip to main content

nodejs-backend-patterns

Provides guidance for building scalable Node.js backend services using Express/Fastify, covering best practices and architectural patterns.

Install this skill

or
67/100

Security score

The nodejs-backend-patterns skill was audited on May 28, 2026 and we found 13 security issues across 2 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 46

Template literal with variable interpolation in command context

SourceSKILL.md
46console.log(`${req.method} ${req.path}`);
medium line 52

Template literal with variable interpolation in command context

SourceSKILL.md
52console.log(`Server running on port ${PORT}`);
medium line 277

Template literal with variable interpolation in command context

SourceSKILL.md
277const setClause = fields.map((field, idx) => `${field} = $${idx + 2}`).join(", ");
medium line 279

Template literal with variable interpolation in command context

SourceSKILL.md
279const query = `
medium line 466

Template literal with variable interpolation in command context

SourceSKILL.md
466duration: `${duration}ms`,
low line 37

Access to .env file

SourceSKILL.md
37app.use(cors({ origin: process.env.ALLOWED_ORIGINS?.split(",") }));
low line 50

Access to .env file

SourceSKILL.md
50const PORT = process.env.PORT || 3000;
low line 68

Access to .env file

SourceSKILL.md
68level: process.env.LOG_LEVEL || "info",
low line 333

Access to .env file

SourceSKILL.md
333const payload = jwt.verify(token, process.env.JWT_SECRET!) as JWTPayload;
low line 414

Access to .env file

SourceSKILL.md
414host: process.env.REDIS_HOST,
low line 415

Access to .env file

SourceSKILL.md
415port: parseInt(process.env.REDIS_PORT || "6379"),
low line 449

Access to .env file

SourceSKILL.md
449level: process.env.LOG_LEVEL || "info",
low line 556

Access to .env file

SourceSKILL.md
556const message = process.env.NODE_ENV === "production" ? "Internal server error" : err.message;
Scanned on May 28, 2026
View Security Dashboard