ESLint InterlaceESLint Interlace
Plugin: secure-coding

Overview

General secure coding practices and OWASP compliance for JavaScript/TypeScript

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

General secure coding practices and OWASP compliance for JavaScript/TypeScript.

NPM VersionNPM DownloadsPackage LicenseCodecovSince Dec 2025

Description

This plugin provides General secure coding practices and OWASP compliance for JavaScript/TypeScript. 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-secure-coding --save-dev

โš™๏ธ Configuration Presets

PresetDescription
recommendedBalanced security for most projects (Web + key Mobile security)
strictMaximum security enforcement (all rules as errors)
owasp-top-10OWASP Top 10 Web 2021 compliance focused
owasp-mobile-top-10OWASP Mobile Top 10 2024 compliance focused

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๐Ÿ’ผโš ๏ธ๐Ÿ”ง๐Ÿ’ก๐Ÿšซ
detect-non-literal-regexpCWE-4007.5ESLint security rule documentation for detect-non-literal-regexpโš ๏ธ
detect-object-injectionCWE-9157.3ESLint security rule documentation for detect-object-injectionโš ๏ธ
detect-weak-password-validationCWE-5217.5ESLint security rule documentation for detect-weak-password-validation
no-directive-injectionCWE-948.8ESLint security rule documentation for no-directive-injection๐Ÿ’ผ
no-electron-security-issuesCWE-6938.8ESLint security rule documentation for no-electron-security-issues๐Ÿ’ผ
no-format-string-injectionCWE-1349.8ESLint security rule documentation for no-format-string-injection๐Ÿ’ผ
no-graphql-injectionCWE-9438.6ESLint security rule documentation for no-graphql-injection๐Ÿ’ผ
no-hardcoded-credentialsCWE-7987.5ESLint security rule documentation for no-hardcoded-credentials๐Ÿ’ผ๐Ÿ”ง๐Ÿ’ก
no-hardcoded-session-tokensCWE-7989.8ESLint security rule documentation for no-hardcoded-session-tokens๐Ÿ’ผ
no-improper-sanitizationCWE-1167.5ESLint security rule documentation for no-improper-sanitization๐Ÿ’ผ
no-improper-type-validationCWE-205.3ESLint security rule documentation for no-improper-type-validationโš ๏ธ
no-insecure-comparisonCWE-6975.3ESLint security rule documentation for no-insecure-comparisonโš ๏ธ๐Ÿ”ง๐Ÿšซ
no-ldap-injectionCWE-909.8ESLint security rule documentation for no-ldap-injection๐Ÿ’ผ
no-missing-authenticationCWE-3069.8ESLint security rule documentation for no-missing-authenticationโš ๏ธ
no-pii-in-logsCWE-5327.5Enforce no pii in logsโš ๏ธ
no-privilege-escalationCWE-2698.8ESLint security rule documentation for no-privilege-escalationโš ๏ธ
no-redos-vulnerable-regexCWE-13337.5ESLint security rule documentation for no-redos-vulnerable-regex๐Ÿ’ผ๐Ÿ’ก
no-sensitive-data-exposureCWE-5325.5ESLint security rule documentation for no-sensitive-data-exposureโš ๏ธ๐Ÿ’ก
no-unchecked-loop-conditionCWE-8357.5ESLint security rule documentation for no-unchecked-loop-condition๐Ÿ’ผ
no-unlimited-resource-allocationCWE-7707.5ESLint security rule documentation for no-unlimited-resource-allocation๐Ÿ’ผ
no-unsafe-deserializationCWE-5029.8ESLint security rule documentation for no-unsafe-deserialization๐Ÿ’ผ
no-unsafe-regex-constructionCWE-4007.5ESLint security rule documentation for no-unsafe-regex-constructionโš ๏ธ๐Ÿ’ก
no-weak-password-recoveryCWE-6409.8ESLint security rule documentation for no-weak-password-recovery๐Ÿ’ผ
no-xpath-injectionCWE-6439.8ESLint security rule documentation for no-xpath-injection๐Ÿ’ผ
no-xxe-injectionCWE-6119.1ESLint security rule documentation for no-xxe-injection๐Ÿ’ผ
require-backend-authorizationESLint security rule documentation for require-backend-authorization
require-secure-defaultsCWE-2767.5ESLint security rule documentation for require-secure-defaults

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