Skip to main content

express-api-patterns

Facilitates Express.js API development with best practices for routing, middleware, error handling, and request validation.

Install this skill

or
35/100

Security score

The express-api-patterns skill was audited on Feb 9, 2026 and we found 29 security issues across 3 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 55

Template literal with variable interpolation in command context

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

Template literal with variable interpolation in command context

SourceSKILL.md
91console.log(`Server running on http://localhost:${PORT}`);
medium line 92

Template literal with variable interpolation in command context

SourceSKILL.md
92console.log(`Environment: ${process.env.NODE_ENV || 'development'}`);
medium line 181

Template literal with variable interpolation in command context

SourceSKILL.md
181res.write(`data: ${JSON.stringify(chunk)}\n\n`);
medium line 404

Template literal with variable interpolation in command context

SourceSKILL.md
404throw new APIError(`Claude API error: ${error.message}`, 503);
medium line 411

Template literal with variable interpolation in command context

SourceSKILL.md
411prompt += `Topic: ${config.topic}\n`;
medium line 412

Template literal with variable interpolation in command context

SourceSKILL.md
412prompt += `Depth Level: ${config.depthLevel}\n`;
medium line 415

Template literal with variable interpolation in command context

SourceSKILL.md
415prompt += `Style Flags: ${config.styleFlags.join(', ')}\n`;
medium line 547

Template literal with variable interpolation in command context

SourceSKILL.md
547throw new Error(`Missing required config: ${missing.join(', ')}`);
low line 38

Access to .env file

SourceSKILL.md
38const PORT = process.env.PORT || 3001;
low line 44

Access to .env file

SourceSKILL.md
44origin: process.env.CLIENT_URL || 'http://localhost:5173',
low line 53

Access to .env file

SourceSKILL.md
53if (process.env.NODE_ENV === 'development') {
low line 92

Access to .env file

SourceSKILL.md
92console.log(`Environment: ${process.env.NODE_ENV || 'development'}`);
low line 218

Access to .env file

SourceSKILL.md
218const correctPassword = process.env.FACULTY_PASSWORD;
low line 350

Access to .env file

SourceSKILL.md
350stack: process.env.NODE_ENV === 'development' ? err.stack : undefined,
low line 362

Access to .env file

SourceSKILL.md
362...(process.env.NODE_ENV === 'development' && { stack: err.stack })
low line 381

Access to .env file

SourceSKILL.md
381apiKey: process.env.ANTHROPIC_API_KEY
low line 507

Access to .env file

SourceSKILL.md
507port: parseInt(process.env.PORT || '3001', 10),
low line 508

Access to .env file

SourceSKILL.md
508nodeEnv: process.env.NODE_ENV || 'development',
low line 511

Access to .env file

SourceSKILL.md
511password: process.env.FACULTY_PASSWORD
low line 515

Access to .env file

SourceSKILL.md
515apiKey: process.env.ANTHROPIC_API_KEY
low line 519

Access to .env file

SourceSKILL.md
519apiKey: process.env.OPENAI_API_KEY
low line 523

Access to .env file

SourceSKILL.md
523cloudName: process.env.CLOUDINARY_CLOUD_NAME,
low line 524

Access to .env file

SourceSKILL.md
524apiKey: process.env.CLOUDINARY_API_KEY,
low line 525

Access to .env file

SourceSKILL.md
525apiSecret: process.env.CLOUDINARY_API_SECRET
low line 529

Access to .env file

SourceSKILL.md
529origin: process.env.CLIENT_URL || 'http://localhost:5173'
low line 44

External URL reference

SourceSKILL.md
44origin: process.env.CLIENT_URL || 'http://localhost:5173',
low line 91

External URL reference

SourceSKILL.md
91console.log(`Server running on http://localhost:${PORT}`);
low line 529

External URL reference

SourceSKILL.md
529origin: process.env.CLIENT_URL || 'http://localhost:5173'
Scanned on Feb 9, 2026
View Security Dashboard
Installation guide →