npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

eslint-plugin-secure-coding

v3.0.2

Published

Security-focused ESLint plugin with 89 AI-parseable rules for detecting and preventing vulnerabilities. OWASP Top 10 2021 + Mobile Top 10 2024 coverage, CWE references, and AI-assisted fix guidance.

Readme

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

| Preset | Description | | :-------------------- | :-------------------------------------------------------------- | | recommended | Balanced security for most projects (Web + key Mobile security) | | strict | Maximum security enforcement (all rules as errors) | | owasp-top-10 | OWASP Top 10 Web 2021 compliance focused | | owasp-mobile-top-10 | OWASP Mobile Top 10 2024 compliance focused |


Rules

Legend

| Icon | Description | | :---: | :--- | | 💼 | 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. |

| Rule | CWE | OWASP | CVSS | Description | 💼 | ⚠️ | 🔧 | 💡 | 🚫 | | :--- | :---: | :---: | :---: | :--- | :---: | :---: | :---: | :---: | :---: | | detect-non-literal-regexp | CWE-400 | | 7.5 | ESLint security rule documentation for detect-non-literal-regexp | | ⚠️ | | | | | detect-object-injection | CWE-915 | | 7.3 | ESLint security rule documentation for detect-object-injection | | ⚠️ | | | | | detect-weak-password-validation | CWE-521 | | 7.5 | ESLint security rule documentation for detect-weak-password-validation | | | | | | | no-directive-injection | CWE-94 | | 8.8 | ESLint security rule documentation for no-directive-injection | 💼 | | | | | | no-electron-security-issues | CWE-693 | | 8.8 | ESLint security rule documentation for no-electron-security-issues | 💼 | | | | | | no-format-string-injection | CWE-134 | | 9.8 | ESLint security rule documentation for no-format-string-injection | 💼 | | | | | | no-graphql-injection | CWE-943 | | 8.6 | ESLint security rule documentation for no-graphql-injection | 💼 | | | | | | no-hardcoded-credentials | CWE-798 | | 7.5 | ESLint security rule documentation for no-hardcoded-credentials | 💼 | | 🔧 | 💡 | | | no-hardcoded-session-tokens | CWE-798 | | 9.8 | ESLint security rule documentation for no-hardcoded-session-tokens | 💼 | | | | | | no-improper-sanitization | CWE-116 | | 7.5 | ESLint security rule documentation for no-improper-sanitization | 💼 | | | | | | no-improper-type-validation | CWE-20 | | 5.3 | ESLint security rule documentation for no-improper-type-validation | | ⚠️ | | | | | no-insecure-comparison | CWE-697 | | 5.3 | ESLint security rule documentation for no-insecure-comparison | | ⚠️ | 🔧 | | 🚫 | | no-ldap-injection | CWE-90 | | 9.8 | ESLint security rule documentation for no-ldap-injection | 💼 | | | | | | no-missing-authentication | CWE-306 | | 9.8 | ESLint security rule documentation for no-missing-authentication | | ⚠️ | | | | | no-pii-in-logs | CWE-532 | | 7.5 | Enforce no pii in logs | | ⚠️ | | | | | no-privilege-escalation | CWE-269 | | 8.8 | ESLint security rule documentation for no-privilege-escalation | | ⚠️ | | | | | no-redos-vulnerable-regex | CWE-1333 | | 7.5 | ESLint security rule documentation for no-redos-vulnerable-regex | 💼 | | | 💡 | | | no-sensitive-data-exposure | CWE-532 | | 5.5 | ESLint security rule documentation for no-sensitive-data-exposure | | ⚠️ | | 💡 | | | no-unchecked-loop-condition | CWE-835 | | 7.5 | ESLint security rule documentation for no-unchecked-loop-condition | 💼 | | | | | | no-unlimited-resource-allocation | CWE-770 | | 7.5 | ESLint security rule documentation for no-unlimited-resource-allocation | 💼 | | | | | | no-unsafe-deserialization | CWE-502 | | 9.8 | ESLint security rule documentation for no-unsafe-deserialization | 💼 | | | | | | no-unsafe-regex-construction | CWE-400 | | 7.5 | ESLint security rule documentation for no-unsafe-regex-construction | | ⚠️ | | 💡 | | | no-weak-password-recovery | CWE-640 | | 9.8 | ESLint security rule documentation for no-weak-password-recovery | 💼 | | | | | | no-xpath-injection | CWE-643 | | 9.8 | ESLint security rule documentation for no-xpath-injection | 💼 | | | | | | no-xxe-injection | CWE-611 | | 9.1 | ESLint security rule documentation for no-xxe-injection | 💼 | | | | | | require-backend-authorization | | | | ESLint security rule documentation for require-backend-authorization | | | | | | | require-secure-defaults | CWE-276 | | 7.5 | ESLint security rule documentation for require-secure-defaults | | | | | |

🔗 Related ESLint Plugins

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

| Plugin | Downloads | Description | | :--- | :---: | :--- | | eslint-plugin-secure-coding | downloads | General security rules & OWASP guidelines. | | eslint-plugin-pg | downloads | PostgreSQL security & best practices. | | eslint-plugin-crypto | downloads | NodeJS Cryptography security rules. | | eslint-plugin-jwt | downloads | JWT security & best practices. | | eslint-plugin-browser-security | downloads | Browser-specific security & XSS prevention. | | eslint-plugin-express-security | downloads | Express.js security hardening rules. | | eslint-plugin-lambda-security | downloads | AWS Lambda security best practices. | | eslint-plugin-nestjs-security | downloads | NestJS security rules & patterns. | | eslint-plugin-mongodb-security | downloads | MongoDB security best practices. | | eslint-plugin-vercel-ai-security | downloads | Vercel AI SDK security hardening. | | eslint-plugin-import-next | downloads | Next-gen import sorting & architecture. |

📄 License

MIT © Ofri Peretz