ESLint InterlaceESLint Interlace
Plugin: express-security

Overview

Express.js security hardening - cookies, CORS, CSRF, rate limiting, and Helmet

Live from GitHub

This content is fetched directly from README.md on GitHub and cached for 1 hour.

AI-Optimized Security

Every rule includes CWE, OWASP, and CVSS metadata for AI assistants to provide precise, context-aware fixes.


ESLint Interlace Logo

Comprehensive security rules for Express.js applications, mapping to OWASP Top 10.

NPM VersionNPM DownloadsPackage LicenseCodecovSince Dec 2025

Description

This plugin provides Comprehensive security rules for Express.js applications, mapping to OWASP Top 10. By using this plugin, you can proactively identify and mitigate security risks across your entire codebase.

Philosophy

Interlace fosters strength through integration. Instead of stacking isolated rules, we interlace security directly into your workflow to create a resilient fabric of code. We believe tools should guide rather than gatekeep, providing educational feedback that strengthens the developer with every interaction.

Getting Started

npm install eslint-plugin-express-security --save-dev

โš™๏ธ Configuration Presets

PresetDescription
recommendedBalanced security for Express projects (critical as error, others warn)
strictMaximum security enforcement (all rules as errors)
apiHTTP/API security rules only (CORS, CSRF, cookies, rate limiting)
graphqlGraphQL-specific security rules only

๐Ÿ“š Supported Libraries

LibrarynpmDownloadsDetection
expressMisconfig, DoS
helmetMissing Security Headers
corsPermissive CORS
csurfMissing CSRF Protection

Rules

Legend

IconDescription
๐Ÿ’ผRecommended: Included in the recommended preset.
โš ๏ธWarns: Set towarn in recommended preset.
๐Ÿ”งAuto-fixable: Automatically fixable by the --fix CLI option.
๐Ÿ’กSuggestions: Providing code suggestions in IDE.
๐ŸšซDeprecated: This rule is deprecated.
RuleCWEOWASPCVSSDescription๐Ÿ’ผโš ๏ธ๐Ÿ”ง๐Ÿ’ก๐Ÿšซ
no-cors-credentials-wildcardCWE-9429.1ESLint rule documentation for no-cors-credentials-wildcard๐Ÿ’ผ
no-exposed-debug-endpointsESLint rule documentation for no-exposed-debug-endpoints
no-express-unsafe-regex-routeCWE-13337.5ESLint rule documentation for no-express-unsafe-regex-route๐Ÿ’ผ
no-graphql-introspection-productionCWE-2005.3ESLint rule documentation for no-graphql-introspection-production๐Ÿ’ผโš ๏ธ
no-insecure-cookie-optionsCWE-6145.3ESLint rule documentation for no-insecure-cookie-options๐Ÿ’ผ
no-permissive-corsCWE-9429.1ESLint rule documentation for no-permissive-cors๐Ÿ’ผ
require-csrf-protectionCWE-3528.8ESLint rule documentation for require-csrf-protection๐Ÿ’ผโš ๏ธ
require-express-body-parser-limitsCWE-7707.5ESLint rule documentation for require-express-body-parser-limits๐Ÿ’ผโš ๏ธ
require-helmetCWE-6937.1ESLint rule documentation for require-helmet๐Ÿ’ผ
require-rate-limitingCWE-7707.5ESLint rule documentation for require-rate-limiting๐Ÿ’ผโš ๏ธ

Part of the Interlace ESLint Ecosystem โ€” AI-native security plugins with LLM-optimized error messages:

PluginDownloadsDescription
eslint-plugin-secure-codingGeneral security rules & OWASP guidelines.
eslint-plugin-pgPostgreSQL security & best practices.
eslint-plugin-cryptoNodeJS Cryptography security rules.
eslint-plugin-jwtJWT security & best practices.
eslint-plugin-browser-securityBrowser-specific security & XSS prevention.
eslint-plugin-express-securityExpress.js security hardening rules.
eslint-plugin-lambda-securityAWS Lambda security best practices.
eslint-plugin-nestjs-securityNestJS security rules & patterns.
eslint-plugin-mongodb-securityMongoDB security best practices.
eslint-plugin-vercel-ai-securityVercel AI SDK security hardening.
eslint-plugin-import-nextNext-gen import sorting & architecture.

๐Ÿ“„ License

MIT ยฉ Ofri Peretz

ESLint Interlace Plugin

View README.md on GitHub โ†’

On this page

No Headings