eslint-plugin-express-security 1.1.0 โ†’ 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +86 -358
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,358 +1,57 @@
1
- # eslint-plugin-express-security
1
+ <p align="center">
2
+ <a href="https://eslint.interlace.tools" target="blank"><img src="https://eslint.interlace.tools/eslint-interlace-logo-light.svg" alt="ESLint Interlace Logo" width="120" /></a>
3
+ </p>
2
4
 
3
- <div align="center">
4
- <img src="https://eslint.interlace.tools/images/og-backend.png" alt="ESLint Interlace - eslint-plugin-express-security" width="100%" />
5
- </div>
5
+ <p align="center">
6
+ Comprehensive security rules for Express.js applications, mapping to OWASP Top 10.
7
+ </p>
6
8
 
7
- > **๐Ÿ“˜ Full Documentation:** [https://eslint.interlace.tools/](https://eslint.interlace.tools/)
8
- >
9
- > ๐Ÿ” Security-focused ESLint plugin for Express.js applications. Detects CORS vulnerabilities, CSRF issues, insecure cookies, missing security headers, and rate limiting gaps with AI-optimized fix guidance.
9
+ <p align="center">
10
+ <a href="https://www.npmjs.com/package/eslint-plugin-express-security" target="_blank"><img src="https://img.shields.io/npm/v/eslint-plugin-express-security.svg" alt="NPM Version" /></a>
11
+ <a href="https://www.npmjs.com/package/eslint-plugin-express-security" target="_blank"><img src="https://img.shields.io/npm/dm/eslint-plugin-express-security.svg" alt="NPM Downloads" /></a>
12
+ <a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Package License" /></a>
13
+ <a href="https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=express-security" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=express-security" alt="Codecov" /></a>
14
+ <a href="https://github.com/ofri-peretz/eslint" target="_blank"><img src="https://img.shields.io/badge/Since-Dec_2025-blue?logo=rocket&logoColor=white" alt="Since Dec 2025" /></a>
15
+ </p>
10
16
 
11
- [![npm version](https://img.shields.io/npm/v/eslint-plugin-express-security.svg)](https://www.npmjs.com/package/eslint-plugin-express-security)
12
- [![npm downloads](https://img.shields.io/npm/dm/eslint-plugin-express-security.svg)](https://www.npmjs.com/package/eslint-plugin-express-security)
13
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
14
- [![codecov](https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=express_security)](https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=express_security)
15
- [![Dec 2025](https://img.shields.io/badge/Dec_2025-blue?logo=rocket&logoColor=white)](https://github.com/ofri-peretz/eslint)
17
+ ## Description
16
18
 
17
- > **Express-first security:** This plugin provides comprehensive security rules for **Express.js** applications.
18
- > With **8 security rules** mapped to OWASP Top 10, CWE and CVSS, it transforms your linter into an Express security auditor that AI assistants can understand and fix.
19
+ This plugin offers comprehensive security rules tailored for Express.js applications, directly mapping to the OWASP Top 10 vulnerabilities. It proactively identifies security misconfigurations and unsafe coding patterns, helping you harden your server-side code against common attacks. Implementing these rules is an essential step in building secure, production-ready APIs and web services.
19
20
 
20
- ---
21
+ ## Philosophy
21
22
 
22
- ## ๐Ÿ’ก What you get
23
+ **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.
23
24
 
24
- - **Express-focused coverage:** 8 rules targeting Express-specific vulnerabilities (CORS, CSRF, cookies, headers, rate limiting).
25
- - **LLM-optimized & MCP-ready:** Structured 2-line messages with CWE + OWASP + CVSS + concrete fixes so humans _and_ AI auto-fixers stay aligned.
26
- - **Standards aligned:** OWASP Top 10 Web 2021, CWE tagging, CVSS scoring in every finding for compliance mapping.
27
- - **Tiered presets:** `recommended`, `strict`, `api`, `graphql` for fast policy rollout.
28
- - **Middleware-aware:** Detects helmet, cors, csurf, express-rate-limit, body-parser patterns.
29
- - **Low false positive rate:** Context-aware detection with production heuristics.
25
+ ## Getting Started
30
26
 
31
- Every security rule produces a **structured 2-line error message**:
27
+ - To check out the [guide](https://eslint.interlace.tools/docs/express-security), visit [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
28
+ - ่ฆๆŸฅ็œ‹ไธญๆ–‡ [ๆŒ‡ๅ—](https://eslint.interlace.tools/docs/express-security), ่ฏท่ฎฟ้—ฎ [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
29
+ - [๊ฐ€์ด๋“œ](https://eslint.interlace.tools/docs/express-security) ๋ฌธ์„œ๋Š” [eslint.interlace.tools](https://eslint.interlace.tools)์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๐Ÿ“š
30
+ - [ใ‚ฌใ‚คใƒ‰](https://eslint.interlace.tools/docs/express-security)ใฏ [eslint.interlace.tools](https://eslint.interlace.tools)ใงใ”็ขบ่ชใใ ใ•ใ„ใ€‚ ๐Ÿ“š
31
+ - Para ver la [guรญa](https://eslint.interlace.tools/docs/express-security), visita [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
32
+ - ู„ู„ุงุทู„ุงุน ุนู„ู‰ [ุงู„ุฏู„ูŠู„](https://eslint.interlace.tools/docs/express-security)ุŒ ู‚ู… ุจุฒูŠุงุฑุฉ [eslint.interlace.tools](https://eslint.interlace.tools). ๐Ÿ“š
32
33
 
33
34
  ```bash
34
- src/app.ts
35
- 18:5 error ๐Ÿ”’ CWE-942 OWASP:A05 CVSS:9.1 | Permissive CORS with wildcard origin | CRITICAL [SOC2,PCI-DSS]
36
- Fix: Specify allowed origins: cors({ origin: ['https://your-app.com'] }) | https://owasp.org/...
37
- ```
38
-
39
- **Each message includes:**
40
-
41
- - ๐Ÿ”’ **CWE reference** - vulnerability classification
42
- - ๐Ÿ“‹ **OWASP category** - Top 10 mapping
43
- - ๐Ÿ“Š **CVSS score** - severity rating (0.0-10.0)
44
- - ๐Ÿข **Compliance tags** - affected frameworks (SOC2, PCI-DSS, HIPAA)
45
- - โœ… **Fix instruction** - exact code to write
46
- - ๐Ÿ“š **Documentation link** - learn more
47
-
48
- ---
49
-
50
- ## ๐Ÿ“Š OWASP Top 10 Coverage Matrix
51
-
52
- | OWASP Category | Coverage | Rule | CWE | OWASP | CVSS | Description | ๐Ÿ’ผ | โš ๏ธ | ๐Ÿ”ง | ๐Ÿ’ก | ๐Ÿšซ |
53
- | :---------------------------- | :------: | :--: | :-: | :---- | :--: | :---------: | :-: | :-: | :-: | --- | --- |
54
- | **A01:2021** Access Control | | | | | | | | | |
55
- | **A03:2021** Injection | | | | | | | | | |
56
- | **A05:2021** Misconfiguration | | | | | | | | | |
57
- | **A07:2021** Auth/Session | | | | | | | | | |
58
-
59
- > [!TIP]
60
- > For **complete OWASP coverage**, combine with [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) which provides 78 additional rules covering all OWASP categories.
61
-
62
- ---
63
-
64
- ## ๐Ÿ” 8 Security Rules
65
-
66
- ๐Ÿ’ผ = Set in `recommended` | โš ๏ธ = Warns in `recommended` | ๐Ÿ”ง = Auto-fixable | ๐Ÿ’ก = Suggestions
67
-
68
- ### Headers & CORS (4 rules)
69
-
70
- | Rule | CWE | OWASP | CVSS | Description | ๐Ÿ’ผ | โš ๏ธ | ๐Ÿ”ง | ๐Ÿ’ก | ๐Ÿšซ |
71
- | :------------------------------------------------------------------------ | :-----: | :---: | :--: | :------------------------------------- | :-: | :-: | :-: | :-: | :-: |
72
- | [require-helmet](#require-helmet) | CWE-693 | A05 | 7.1 | Require helmet() middleware | ๐Ÿ’ผ | | | | |
73
- | [no-permissive-cors](#no-permissive-cors) | CWE-942 | A05 | 9.1 | Detect wildcard CORS origins | ๐Ÿ’ผ | | | | |
74
- | [no-cors-credentials-wildcard](#no-cors-credentials-wildcard) | CWE-942 | A05 | 9.1 | Block credentials: true + origin: "\*" | ๐Ÿ’ผ | | | | |
75
- | [require-express-body-parser-limits](#require-express-body-parser-limits) | CWE-770 | A05 | 7.5 | Require body parser size limits | | โš ๏ธ | | | |
76
-
77
- ### CSRF & Cookies (2 rules)
78
-
79
- | Rule | CWE | OWASP | CVSS | Description | ๐Ÿ’ผ | โš ๏ธ | ๐Ÿ”ง | ๐Ÿ’ก | ๐Ÿšซ |
80
- | :-------------------------------------------------------- | :-----: | :---: | :--: | :----------------------------- | :-: | :-: | :-: | :-: | :-: |
81
- | [require-csrf-protection](#require-csrf-protection) | CWE-352 | A07 | 8.8 | Require CSRF middleware | | โš ๏ธ | | | |
82
- | [no-insecure-cookie-options](#no-insecure-cookie-options) | CWE-614 | A07 | 5.3 | Detect missing Secure/HttpOnly | ๐Ÿ’ผ | | | | |
83
-
84
- ### Rate Limiting & DoS (2 rules)
85
-
86
- | Rule | CWE | OWASP | CVSS | Description | ๐Ÿ’ผ | โš ๏ธ | ๐Ÿ”ง | ๐Ÿ’ก | ๐Ÿšซ |
87
- | :-------------------------------------------------------------- | :------: | :---: | :--: | :------------------------------- | :-: | :-: | :-: | :-: | :-: |
88
- | [require-rate-limiting](#require-rate-limiting) | CWE-770 | A05 | 7.5 | Require rate limiting middleware | | โš ๏ธ | | | |
89
- | [no-express-unsafe-regex-route](#no-express-unsafe-regex-route) | CWE-1333 | A03 | 7.5 | Detect ReDoS in route patterns | ๐Ÿ’ผ | | | | |
90
-
91
- ### GraphQL (1 rule)
92
-
93
- | Rule | CWE | OWASP | CVSS | Description | ๐Ÿ’ผ | โš ๏ธ | ๐Ÿ”ง | ๐Ÿ’ก | ๐Ÿšซ |
94
- | :-------------------------------------------------------------------------- | :-----: | :---: | :--: | :------------------------------------ | :-: | :-: | :-: | :-: | :-: |
95
- | [no-graphql-introspection-production](#no-graphql-introspection-production) | CWE-200 | A01 | 5.3 | Disable GraphQL introspection in prod | | โš ๏ธ | | | |
96
-
97
- ---
98
-
99
- ## ๐Ÿ” Rule Details
100
-
101
- ### `require-helmet`
102
-
103
- Requires helmet() middleware for security headers.
104
-
105
- **โŒ Incorrect**
106
-
107
- ```javascript
108
- const app = express();
109
- app.get('/', handler); // No helmet middleware
110
- ```
111
-
112
- **โœ… Correct**
113
-
114
- ```javascript
115
- import helmet from 'helmet';
116
-
117
- const app = express();
118
- app.use(helmet()); // Adds 11+ security headers
119
- app.get('/', handler);
120
- ```
121
-
122
- ---
123
-
124
- ### `no-permissive-cors`
125
-
126
- Detects wildcard CORS configuration that allows any origin.
127
-
128
- **โŒ Incorrect**
129
-
130
- ```javascript
131
- app.use(cors({ origin: '*' }));
132
- app.use(cors()); // Defaults to '*'
133
- ```
134
-
135
- **โœ… Correct**
136
-
137
- ```javascript
138
- app.use(
139
- cors({
140
- origin: ['https://your-app.com', 'https://admin.your-app.com'],
141
- }),
142
- );
143
-
144
- // Or use dynamic validation
145
- app.use(
146
- cors({
147
- origin: (origin, callback) => {
148
- if (allowedOrigins.includes(origin)) {
149
- callback(null, true);
150
- } else {
151
- callback(new Error('Not allowed by CORS'));
152
- }
153
- },
154
- }),
155
- );
156
- ```
157
-
158
- ---
159
-
160
- ### `no-cors-credentials-wildcard`
161
-
162
- Blocks the dangerous combination of `credentials: true` with wildcard origins.
163
-
164
- **โŒ Incorrect**
165
-
166
- ```javascript
167
- // CRITICAL: This exposes credentials to any origin!
168
- app.use(
169
- cors({
170
- origin: '*',
171
- credentials: true,
172
- }),
173
- );
174
- ```
175
-
176
- **โœ… Correct**
177
-
178
- ```javascript
179
- app.use(
180
- cors({
181
- origin: 'https://your-app.com',
182
- credentials: true,
183
- }),
184
- );
185
- ```
186
-
187
- ---
188
-
189
- ### `require-csrf-protection`
190
-
191
- Requires CSRF protection middleware for state-changing routes.
192
-
193
- **โŒ Incorrect**
194
-
195
- ```javascript
196
- app.post('/api/transfer', handler); // No CSRF protection
197
- ```
198
-
199
- **โœ… Correct**
200
-
201
- ```javascript
202
- import csurf from 'csurf';
203
-
204
- app.use(csurf({ cookie: true }));
205
- app.post('/api/transfer', handler);
206
- ```
207
-
208
- ---
209
-
210
- ### `no-insecure-cookie-options`
211
-
212
- Detects cookies missing Secure, HttpOnly, or SameSite attributes.
213
-
214
- **โŒ Incorrect**
215
-
216
- ```javascript
217
- res.cookie('session', token); // Missing security attributes
218
- ```
219
-
220
- **โœ… Correct**
221
-
222
- ```javascript
223
- res.cookie('session', token, {
224
- httpOnly: true,
225
- secure: true,
226
- sameSite: 'strict',
227
- });
228
- ```
229
-
230
- ---
231
-
232
- ### `require-rate-limiting`
233
-
234
- Requires rate limiting middleware to prevent DoS attacks.
235
-
236
- **โŒ Incorrect**
237
-
238
- ```javascript
239
- app.post('/api/login', handler); // No rate limiting
240
- ```
241
-
242
- **โœ… Correct**
243
-
244
- ```javascript
245
- import rateLimit from 'express-rate-limit';
246
-
247
- const limiter = rateLimit({
248
- windowMs: 15 * 60 * 1000, // 15 minutes
249
- max: 100, // limit each IP to 100 requests per windowMs
250
- });
251
-
252
- app.use('/api/', limiter);
253
- app.post('/api/login', handler);
254
- ```
255
-
256
- ---
257
-
258
- ### `require-express-body-parser-limits`
259
-
260
- Requires size limits on body parser to prevent DoS via large payloads.
261
-
262
- **โŒ Incorrect**
263
-
264
- ```javascript
265
- app.use(express.json()); // No size limit
266
- ```
267
-
268
- **โœ… Correct**
269
-
270
- ```javascript
271
- app.use(express.json({ limit: '100kb' }));
272
- app.use(express.urlencoded({ limit: '100kb', extended: true }));
273
- ```
274
-
275
- ---
276
-
277
- ### `no-express-unsafe-regex-route`
278
-
279
- Detects ReDoS-vulnerable regex patterns in Express routes.
280
-
281
- **โŒ Incorrect**
282
-
283
- ```javascript
284
- // Catastrophic backtracking possible
285
- app.get('/api/:id(\\d+)+', handler);
286
- app.get(/^\/user\/(.*)$/, handler);
287
- ```
288
-
289
- **โœ… Correct**
290
-
291
- ```javascript
292
- app.get('/api/:id(\\d{1,10})', handler); // Bounded
293
- app.get('/user/:userId', handler); // Named parameter
294
- ```
295
-
296
- ---
297
-
298
- ### `no-graphql-introspection-production`
299
-
300
- Disables GraphQL introspection queries in production.
301
-
302
- **โŒ Incorrect**
303
-
304
- ```javascript
305
- const server = new ApolloServer({
306
- typeDefs,
307
- resolvers,
308
- introspection: true, // Exposes schema in production
309
- });
35
+ npm install eslint-plugin-express-security --save-dev
310
36
  ```
311
37
 
312
- **โœ… Correct**
313
-
314
- ```javascript
315
- const server = new ApolloServer({
316
- typeDefs,
317
- resolvers,
318
- introspection: process.env.NODE_ENV !== 'production',
319
- });
320
- ```
321
-
322
- ---
323
-
324
- ## ๐Ÿš€ Quick Start
325
-
326
- ### ESLint Flat Config (Recommended)
327
-
328
- ```javascript
329
- // eslint.config.js
330
- import expressSecurity from 'eslint-plugin-express-security';
331
-
332
- export default [
333
- expressSecurity.configs.recommended,
334
- // ... other configs
335
- ];
336
- ```
337
-
338
- ### Strict Mode
339
-
340
- ```javascript
341
- import expressSecurity from 'eslint-plugin-express-security';
342
-
343
- export default [expressSecurity.configs.strict];
344
- ```
38
+ ## โš™๏ธ Configuration Presets
345
39
 
346
- ---
40
+ | Preset | Description |
41
+ | :------------ | :---------------------------------------------------------------------- |
42
+ | `recommended` | Balanced security for Express projects (critical as error, others warn) |
43
+ | `strict` | Maximum security enforcement (all rules as errors) |
44
+ | `api` | HTTP/API security rules only (CORS, CSRF, cookies, rate limiting) |
45
+ | `graphql` | GraphQL-specific security rules only |
347
46
 
348
- ## ๐Ÿ“‹ Available Presets
47
+ ## ๐Ÿ“š Supported Libraries
349
48
 
350
- | Preset | Description |
351
- | ----------------- | ----------------------------------------------------------------------- |
352
- | **`recommended`** | Balanced security for Express projects (critical as error, others warn) |
353
- | **`strict`** | Maximum security enforcement (all rules as errors) |
354
- | **`api`** | HTTP/API security rules only (CORS, CSRF, cookies, rate limiting) |
355
- | **`graphql`** | GraphQL-specific security rules only |
49
+ | Library | npm | Downloads | Detection |
50
+ | :-------- | :---------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------- | :----------------------- |
51
+ | `express` | [![npm](https://img.shields.io/npm/v/express.svg?style=flat-square)](https://www.npmjs.com/package/express) | [![downloads](https://img.shields.io/npm/dt/express.svg?style=flat-square)](https://www.npmjs.com/package/express) | Misconfig, DoS |
52
+ | `helmet` | [![npm](https://img.shields.io/npm/v/helmet.svg?style=flat-square)](https://www.npmjs.com/package/helmet) | [![downloads](https://img.shields.io/npm/dt/helmet.svg?style=flat-square)](https://www.npmjs.com/package/helmet) | Missing Security Headers |
53
+ | `cors` | [![npm](https://img.shields.io/npm/v/cors.svg?style=flat-square)](https://www.npmjs.com/package/cors) | [![downloads](https://img.shields.io/npm/dt/cors.svg?style=flat-square)](https://www.npmjs.com/package/cors) | Permissive CORS |
54
+ | `csurf` | [![npm](https://img.shields.io/npm/v/csurf.svg?style=flat-square)](https://www.npmjs.com/package/csurf) | [![downloads](https://img.shields.io/npm/dt/csurf.svg?style=flat-square)](https://www.npmjs.com/package/csurf) | Missing CSRF Protection |
356
55
 
357
56
  ---
358
57
 
@@ -382,7 +81,7 @@ export default [
382
81
 
383
82
  ---
384
83
 
385
- ## ๐Ÿค– LLM & AI Integration
84
+ ## AI-Optimized Messages
386
85
 
387
86
  This plugin is optimized for ESLint's [Model Context Protocol (MCP)](https://eslint.org/docs/latest/use/mcp), enabling AI assistants like **Cursor**, **GitHub Copilot**, and **Claude** to:
388
87
 
@@ -402,23 +101,7 @@ This plugin is optimized for ESLint's [Model Context Protocol (MCP)](https://esl
402
101
  }
403
102
  ```
404
103
 
405
- ---
406
-
407
- ## ๐Ÿ”— Related ESLint Plugins
408
-
409
- Part of the **Interlace ESLint Ecosystem** โ€” AI-native security plugins with LLM-optimized error messages:
410
-
411
- | Plugin | Downloads | Description | Rule | CWE | OWASP | CVSS | Description | ๐Ÿ’ผ | โš ๏ธ | ๐Ÿ”ง | ๐Ÿ’ก | ๐Ÿšซ |
412
- | :--------------------------------------------------------------------------------------------------- | :-------: | :---------: | :--: | :-- | :---: | :--: | :---------: | :-: | :-: | --- | --- | --- |
413
- | [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) | | | | | | | | | |
414
- | [`eslint-plugin-nestjs-security`](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | | | | | | | | | |
415
- | [`eslint-plugin-lambda-security`](https://www.npmjs.com/package/eslint-plugin-lambda-security) | | | | | | | | | |
416
- | [`eslint-plugin-browser-security`](https://www.npmjs.com/package/eslint-plugin-browser-security) | | | | | | | | | |
417
- | [`eslint-plugin-jwt`](https://www.npmjs.com/package/eslint-plugin-jwt) | | | | | | | | | |
418
- | [`eslint-plugin-crypto`](https://www.npmjs.com/package/eslint-plugin-crypto) | | | | | | | | | |
419
- | [`eslint-plugin-pg`](https://www.npmjs.com/package/eslint-plugin-pg) | | | | | | | | | |
420
- | [`eslint-plugin-vercel-ai-security`](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | | | | | | | | | |
421
- | [`eslint-plugin-import-next`](https://www.npmjs.com/package/eslint-plugin-import-next) | | | | | | | | | |
104
+ By providing this structured context (CWE, OWASP, Fix), we enable AI tools to **reason** about the security flaw rather than hallucinating. This allows Copilot/Cursor to suggest the _exact_ correct fix immediately.
422
105
 
423
106
  ---
424
107
 
@@ -428,6 +111,51 @@ This plugin runs **100% locally**. No data ever leaves your machine.
428
111
 
429
112
  ---
430
113
 
114
+ ## Rules
115
+
116
+ **Legend**
117
+
118
+ | Icon | Description |
119
+ | :--: | :----------------------------------------------------------------- |
120
+ | ๐Ÿ’ผ | **Recommended**: Included in the recommended preset. |
121
+ | โš ๏ธ | **Warns**: Set towarn in recommended preset. |
122
+ | ๐Ÿ”ง | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
123
+ | ๐Ÿ’ก | **Suggestions**: Providing code suggestions in IDE. |
124
+ | ๐Ÿšซ | **Deprecated**: This rule is deprecated. |
125
+
126
+ | Rule | CWE | OWASP | CVSS | Description | ๐Ÿ’ผ | โš ๏ธ | ๐Ÿ”ง | ๐Ÿ’ก | ๐Ÿšซ |
127
+ | :------------------------------------------------------------------------------------------------------------------------------------ | :------: | :---: | :--: | :-------------------------------------------------------------------------- | :-: | :-: | :-: | :-: | :-: |
128
+ | [require-helmet](https://eslint.interlace.tools/docs/express-security/rules/require-helmet) | CWE-693 | | 7.1 | [require-helmet](#require-helmet) | ๐Ÿ’ผ | | | | |
129
+ | [no-permissive-cors](https://eslint.interlace.tools/docs/express-security/rules/no-permissive-cors) | CWE-942 | | 9.1 | [no-permissive-cors](#no-permissive-cors) | ๐Ÿ’ผ | | | | |
130
+ | [no-cors-credentials-wildcard](https://eslint.interlace.tools/docs/express-security/rules/no-cors-credentials-wildcard) | CWE-942 | | 9.1 | [no-cors-credentials-wildcard](#no-cors-credentials-wildcard) | ๐Ÿ’ผ | | | | |
131
+ | [require-express-body-parser-limits](https://eslint.interlace.tools/docs/express-security/rules/require-express-body-parser-limits) | CWE-770 | | 7.5 | [require-express-body-parser-limits](#require-express-body-parser-limits) | ๐Ÿ’ผ | โš ๏ธ | | | |
132
+ | [require-csrf-protection](https://eslint.interlace.tools/docs/express-security/rules/require-csrf-protection) | CWE-352 | | 8.8 | [require-csrf-protection](#require-csrf-protection) | ๐Ÿ’ผ | โš ๏ธ | | | |
133
+ | [no-insecure-cookie-options](https://eslint.interlace.tools/docs/express-security/rules/no-insecure-cookie-options) | CWE-614 | | 5.3 | [no-insecure-cookie-options](#no-insecure-cookie-options) | ๐Ÿ’ผ | | | | |
134
+ | [require-rate-limiting](https://eslint.interlace.tools/docs/express-security/rules/require-rate-limiting) | CWE-770 | | 7.5 | [require-rate-limiting](#require-rate-limiting) | ๐Ÿ’ผ | โš ๏ธ | | | |
135
+ | [no-express-unsafe-regex-route](https://eslint.interlace.tools/docs/express-security/rules/no-express-unsafe-regex-route) | CWE-1333 | | 7.5 | [no-express-unsafe-regex-route](#no-express-unsafe-regex-route) | ๐Ÿ’ผ | | | | |
136
+ | [no-graphql-introspection-production](https://eslint.interlace.tools/docs/express-security/rules/no-graphql-introspection-production) | CWE-200 | | 5.3 | [no-graphql-introspection-production](#no-graphql-introspection-production) | ๐Ÿ’ผ | โš ๏ธ | | | |
137
+
138
+ ## ๐Ÿ”— Related ESLint Plugins
139
+
140
+ Part of the **Interlace ESLint Ecosystem** โ€” AI-native security plugins with LLM-optimized error messages:
141
+
142
+ | Plugin | Downloads | Description |
143
+ | :--------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------ |
144
+ | [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-secure-coding.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-secure-coding) | General security rules & OWASP guidelines. |
145
+ | [`eslint-plugin-pg`](https://www.npmjs.com/package/eslint-plugin-pg) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-pg.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-pg) | PostgreSQL security & best practices. |
146
+ | [`eslint-plugin-crypto`](https://www.npmjs.com/package/eslint-plugin-crypto) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-crypto.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-crypto) | NodeJS Cryptography security rules. |
147
+ | [`eslint-plugin-jwt`](https://www.npmjs.com/package/eslint-plugin-jwt) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-jwt.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-jwt) | JWT security & best practices. |
148
+ | [`eslint-plugin-browser-security`](https://www.npmjs.com/package/eslint-plugin-browser-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-browser-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-browser-security) | Browser-specific security & XSS prevention. |
149
+ | [`eslint-plugin-vercel-ai-security`](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-vercel-ai-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | Vercel AI SDK security rules. |
150
+ | [`eslint-plugin-express-security`](https://www.npmjs.com/package/eslint-plugin-express-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-express-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-express-security) | Express.js security hardening rules. |
151
+ | [`eslint-plugin-lambda-security`](https://www.npmjs.com/package/eslint-plugin-lambda-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-lambda-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-lambda-security) | AWS Lambda security best practices. |
152
+ | [`eslint-plugin-nestjs-security`](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-nestjs-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | NestJS security rules & patterns. |
153
+ | [`eslint-plugin-import-next`](https://www.npmjs.com/package/eslint-plugin-import-next) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-import-next.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-import-next) | Next-gen import sorting & architecture. |
154
+
431
155
  ## ๐Ÿ“„ License
432
156
 
433
157
  MIT ยฉ [Ofri Peretz](https://github.com/ofri-peretz)
158
+
159
+ <p align="center">
160
+ <a href="https://eslint.interlace.tools/docs/express-security"><img src="https://eslint.interlace.tools/images/og-express-security.png" alt="ESLint Interlace Plugin" width="300" /></a>
161
+ </p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-express-security",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Security-focused ESLint plugin for Express.js applications. Detects insecure cookies, missing security headers, CORS misconfigurations, CSRF vulnerabilities, GraphQL security issues, and more.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",