Mern sec
Security policy for MERN apps. Enforces OWASP Top 10 and CWE Top 25 mitigations.From its SKILL.md
npx -y skills add edfenton/claude-skills --skill mern-secAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 239 tokens by cl100k_base, as published. Nobody here has run it
Purpose
Ensure MERN code is secure by default. For security output format and core refusal policy, see /shared-sec-baseline.
MERN-specific security concerns (always check)
- NoSQL injection — reject
$-prefixed and dot-notation keys from user input - Input validation — schema validation (Zod/Joi) at every API boundary
- XSS — React escapes by default; audit
dangerouslySetInnerHTMLand raw HTML rendering - CSRF — required when using cookie-based auth; use tokens or SameSite=Strict
- Auth/authz gaps — verify authorization on every protected route handler, not just frontend
- Token storage — avoid localStorage for sensitive tokens without justification; prefer httpOnly cookies
Standard security (brief check)
- Error responses: safe envelopes, no stack traces or internal details
- Rate limiting: on auth endpoints, expensive operations, public APIs
- Dependencies: lockfile committed, no known critical vulnerabilities
Reference
For detailed OWASP/CWE mitigation patterns, see reference/mern-sec-reference.md
What ships with it: 1 file
6.0 KB alongside SKILL.md
reference/
- mern-sec-reference.md6.0 KB