oxlint-plugin-node-security 5.6.12 → 5.8.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.
- package/README.md +255 -11
- package/index.d.ts +3 -0
- package/index.js +1 -1
- package/package.json +22 -11
package/README.md
CHANGED
|
@@ -1,22 +1,266 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://eslint.interlace.tools/docs/security/plugin-node-security?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security" target="blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/interlace-dark.svg"><img src="https://eslint.interlace.tools/logos/interlace-light.svg" alt="Interlace" height="90" /></picture></a>
|
|
3
|
+
|
|
4
|
+
<a href="https://nodejs.org" target="_blank"><img src="https://eslint.interlace.tools/logos/node.svg" alt="Node.js" height="90" /></a>
|
|
5
|
+
|
|
6
|
+
<a href="https://oxc.rs" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/oxlint-dark.svg"><img src="https://eslint.interlace.tools/logos/oxlint-light.svg" alt="oxlint" height="90" /></picture></a>
|
|
7
|
+
</p>
|
|
2
8
|
|
|
3
|
-
|
|
4
|
-
|
|
9
|
+
<p align="center">
|
|
10
|
+
Security-focused ESLint plugin for Node.js built-in modules (fs, child_process, vm, crypto, Buffer).
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<a href="https://www.npmjs.com/package/oxlint-plugin-node-security" target="_blank"><img src="https://img.shields.io/npm/v/oxlint-plugin-node-security.svg" alt="NPM Version" /></a>
|
|
15
|
+
<a href="https://www.npmjs.com/package/oxlint-plugin-node-security" target="_blank"><img src="https://img.shields.io/npm/dm/oxlint-plugin-node-security.svg" alt="NPM Downloads" /></a>
|
|
16
|
+
<a href="https://packagephobia.com/result?p=oxlint-plugin-node-security" target="_blank"><img src="https://badgen.net/packagephobia/install/oxlint-plugin-node-security" alt="Install Size" /></a>
|
|
17
|
+
<a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Package License" /></a>
|
|
18
|
+
<a href="https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=eslint-plugin-node-security" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=eslint-plugin-node-security" alt="Codecov" /></a>
|
|
19
|
+
<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>
|
|
20
|
+
<a href="https://scorecard.dev/viewer/?uri=github.com/ofri-peretz/eslint" target="_blank"><img src="https://api.securityscorecards.dev/projects/github.com/ofri-peretz/eslint/badge" alt="OpenSSF Scorecard" /></a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
> ⭐ If this plugin caught a real bug for you, [**star the repo**](https://github.com/ofri-peretz/eslint) — it's the signal that keeps these rules maintained.
|
|
24
|
+
|
|
25
|
+
## Description
|
|
26
|
+
|
|
27
|
+
`oxlint-plugin-node-security` is the [oxlint](https://oxc.rs/docs/guide/usage/linter/js-plugins) and [Vite+](https://viteplus.dev/guide/lint) name for [`eslint-plugin-node-security`](https://www.npmjs.com/package/eslint-plugin-node-security). It carries the same rules under the same IDs (`node-security/<rule>`), always at the same version, because it re-exports that package rather than copying it. Installing it does not install ESLint.
|
|
28
|
+
|
|
29
|
+
## Covered natively by oxlint
|
|
30
|
+
|
|
31
|
+
None of these 43 rules has an oxlint built-in equivalent. Every rule here is new to oxlint.
|
|
32
|
+
|
|
33
|
+
- **Why** — a linter nobody reads protects nothing. We would rather miss a finding
|
|
34
|
+
than spend your attention on one that was never real.
|
|
35
|
+
- **How** — evidence, not names. A rule fires on what the code _does_, resolved
|
|
36
|
+
through the AST and ESLint's own scope analysis.
|
|
37
|
+
- **What** — every finding carries its fix, in prose for a human and as structured
|
|
38
|
+
JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.
|
|
39
|
+
|
|
40
|
+
That trade costs recall, and we measure it:
|
|
41
|
+
[methodology](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-METHODOLOGY.md)
|
|
42
|
+
· [results](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-RESULTS.md)
|
|
43
|
+
· [a false positive is a bug](https://github.com/ofri-peretz/eslint/issues).
|
|
44
|
+
|
|
45
|
+
## Getting Started
|
|
5
46
|
|
|
6
47
|
```bash
|
|
7
|
-
npm
|
|
48
|
+
npm install oxlint-plugin-node-security --save-dev
|
|
8
49
|
```
|
|
9
50
|
|
|
10
|
-
|
|
51
|
+
### Vite+
|
|
11
52
|
|
|
12
|
-
```
|
|
13
|
-
|
|
53
|
+
```ts
|
|
54
|
+
// vite.config.ts
|
|
55
|
+
import { defineConfig } from 'vite-plus';
|
|
56
|
+
|
|
57
|
+
export default defineConfig({
|
|
58
|
+
lint: {
|
|
59
|
+
jsPlugins: ['oxlint-plugin-node-security'],
|
|
60
|
+
rules: {
|
|
61
|
+
'node-security/detect-child-process': 'error',
|
|
62
|
+
'node-security/detect-eval-with-expression': 'error',
|
|
63
|
+
'node-security/no-arbitrary-file-access': 'error',
|
|
64
|
+
'node-security/no-cryptojs': 'error',
|
|
65
|
+
'node-security/no-data-in-temp-storage': 'error',
|
|
66
|
+
'node-security/no-deprecated-buffer': 'error',
|
|
67
|
+
'node-security/no-dynamic-algorithm-selection': 'error',
|
|
68
|
+
'node-security/no-dynamic-command-string': 'error',
|
|
69
|
+
'node-security/no-ecb-mode': 'error',
|
|
70
|
+
'node-security/no-env-injection': 'error',
|
|
71
|
+
'node-security/no-insecure-http-parser': 'error',
|
|
72
|
+
'node-security/no-math-random-crypto': 'error',
|
|
73
|
+
'node-security/no-self-signed-certs': 'error',
|
|
74
|
+
'node-security/no-shell-injection': 'error',
|
|
75
|
+
'node-security/no-static-iv': 'error',
|
|
76
|
+
'node-security/no-toctou-vulnerability': 'error',
|
|
77
|
+
'node-security/no-unbounded-decompression': 'error',
|
|
78
|
+
'node-security/no-unsafe-dynamic-require': 'error',
|
|
79
|
+
'node-security/no-weak-cipher-algorithm': 'error',
|
|
80
|
+
'node-security/no-weak-dh-parameters': 'error',
|
|
81
|
+
'node-security/no-weak-hash-algorithm': 'error',
|
|
82
|
+
'node-security/no-zip-slip': 'error',
|
|
83
|
+
'node-security/require-aead-tag-verification': 'error',
|
|
84
|
+
'node-security/require-dependency-integrity': 'error',
|
|
85
|
+
'node-security/require-stream-error-handler': 'error',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
});
|
|
14
89
|
```
|
|
15
90
|
|
|
16
|
-
|
|
91
|
+
### oxlint
|
|
17
92
|
|
|
18
|
-
```
|
|
19
|
-
|
|
93
|
+
```json
|
|
94
|
+
{
|
|
95
|
+
"jsPlugins": ["oxlint-plugin-node-security"],
|
|
96
|
+
"rules": {
|
|
97
|
+
"node-security/detect-child-process": "error",
|
|
98
|
+
"node-security/detect-eval-with-expression": "error",
|
|
99
|
+
"node-security/no-arbitrary-file-access": "error",
|
|
100
|
+
"node-security/no-cryptojs": "error",
|
|
101
|
+
"node-security/no-data-in-temp-storage": "error",
|
|
102
|
+
"node-security/no-deprecated-buffer": "error",
|
|
103
|
+
"node-security/no-dynamic-algorithm-selection": "error",
|
|
104
|
+
"node-security/no-dynamic-command-string": "error",
|
|
105
|
+
"node-security/no-ecb-mode": "error",
|
|
106
|
+
"node-security/no-env-injection": "error",
|
|
107
|
+
"node-security/no-insecure-http-parser": "error",
|
|
108
|
+
"node-security/no-math-random-crypto": "error",
|
|
109
|
+
"node-security/no-self-signed-certs": "error",
|
|
110
|
+
"node-security/no-shell-injection": "error",
|
|
111
|
+
"node-security/no-static-iv": "error",
|
|
112
|
+
"node-security/no-toctou-vulnerability": "error",
|
|
113
|
+
"node-security/no-unbounded-decompression": "error",
|
|
114
|
+
"node-security/no-unsafe-dynamic-require": "error",
|
|
115
|
+
"node-security/no-weak-cipher-algorithm": "error",
|
|
116
|
+
"node-security/no-weak-dh-parameters": "error",
|
|
117
|
+
"node-security/no-weak-hash-algorithm": "error",
|
|
118
|
+
"node-security/no-zip-slip": "error",
|
|
119
|
+
"node-security/require-aead-tag-verification": "error",
|
|
120
|
+
"node-security/require-dependency-integrity": "error",
|
|
121
|
+
"node-security/require-stream-error-handler": "error"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
20
124
|
```
|
|
21
125
|
|
|
22
|
-
|
|
126
|
+
These are the rules the plugin recommends (💼 in the table below).
|
|
127
|
+
|
|
128
|
+
### ESLint
|
|
129
|
+
|
|
130
|
+
Install [`eslint-plugin-node-security`](https://www.npmjs.com/package/eslint-plugin-node-security) instead. It has the same rules, plus presets for ESLint's flat config.
|
|
131
|
+
|
|
132
|
+
## 📦 Compatibility
|
|
133
|
+
|
|
134
|
+
| Package | Version |
|
|
135
|
+
| :------ | :--------------------------------------------------------------- |
|
|
136
|
+
| oxlint | verified on `1.90.0`: CI loads every rule ID through `jsPlugins` |
|
|
137
|
+
| Vite+ | `lint.jsPlugins` in `vite.config.ts` |
|
|
138
|
+
| Node.js | `>=18.0.0` |
|
|
139
|
+
|
|
140
|
+
## Rules
|
|
141
|
+
|
|
142
|
+
**Legend**
|
|
143
|
+
|
|
144
|
+
| Icon | Description |
|
|
145
|
+
| :--: | :------------------------------------------------------------------------ |
|
|
146
|
+
| 💼 | **Recommended**: Included in the recommended preset. |
|
|
147
|
+
| ⚠️ | **Warns**: Set to warn in recommended preset. |
|
|
148
|
+
| 🔧 | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
|
|
149
|
+
| 💡 | **Suggestions**: Providing code suggestions in IDE. |
|
|
150
|
+
| 🚫 | **Deprecated**: This rule is deprecated. |
|
|
151
|
+
| 🟢 | **Type-unaware**: AST-only, runs in oxlint JS-plugin tier. |
|
|
152
|
+
| 🟡 | **Type-aware (refining)**: pure-AST primary path; types refine precision. |
|
|
153
|
+
| 🟠 | **Type-aware (graceful)**: requires TS program; silent without it. |
|
|
154
|
+
|
|
155
|
+
| Rule | CWE | OWASP | CVSS | Description | 🧠 | 💼 | ⚠️ | 🔧 | 💡 | 🚫 |
|
|
156
|
+
| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------: | :------: | :--: | :----------------------------------------------------------------------------------------------------------- | :-: | :-: | :-: | :-: | :-: | :-: |
|
|
157
|
+
| [detect-child-process](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/detect-child-process?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-78 | | | Detects instances of childprocess & non-literal exec() calls that may allow command injection | 🟢 | 💼 | | | | |
|
|
158
|
+
| [detect-eval-with-expression](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/detect-eval-with-expression?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-95 | A03:2021 | | Detects eval(variable) which can allow an attacker to run arbitrary code inside your process | 🟢 | 💼 | | | | |
|
|
159
|
+
| [detect-non-literal-fs-filename](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/detect-non-literal-fs-filename?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-22 | | | Detects variable in filename argument of fs calls, which might allow an attacker to access anything on your… | 🟢 | | ⚠️ | | | |
|
|
160
|
+
| [detect-suspicious-dependencies](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/detect-suspicious-dependencies?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-506 | | | This rule detects package imports that look like typosquatting attempts on popular npm packages | 🟢 | | ⚠️ | | | |
|
|
161
|
+
| [lock-file](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/lock-file?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-829 | | | CWE: [CWE-829](https://cwe.mitre.org/data/definitions/829.html) | 🟢 | | | | | |
|
|
162
|
+
| [no-arbitrary-file-access](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-arbitrary-file-access?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-22 | A01:2021 | | Prevents file system access with unsanitized user input to protect against path traversal attacks. | 🟢 | 💼 | | | | |
|
|
163
|
+
| [no-buffer-overread](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-buffer-overread?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-126 | | | Detects buffer access beyond bounds | 🟢 | | ⚠️ | | | |
|
|
164
|
+
| [no-cryptojs](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-cryptojs?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-1104 | A06:2021 | | Disallow deprecated crypto-js library (use native crypto instead) | 🟢 | 💼 | | | | |
|
|
165
|
+
| [no-cryptojs-weak-random](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-cryptojs-weak-random?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-338 | A02:2021 | | Disallow crypto-js WordArray.random() (CVE-2020-36732) | 🟢 | | | | | |
|
|
166
|
+
| [no-data-in-temp-storage](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-data-in-temp-storage?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-312 | | | Temporary directories (/tmp, /var/tmp, temp/) are often world-readable or persist longer than expected | 🟢 | 💼 | | | | |
|
|
167
|
+
| [no-deprecated-buffer](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-deprecated-buffer?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-676 | | | Disallow the deprecated `new Buffer()` constructor and `Buffer()` factory call. | 🟢 | 💼 | | | 💡 | |
|
|
168
|
+
| [no-deprecated-cipher-method](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-deprecated-cipher-method?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-327 | A02:2021 | | Disallow deprecated crypto.createCipher/createDecipher methods | 🟢 | | | | | |
|
|
169
|
+
| [no-dynamic-algorithm-selection](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-dynamic-algorithm-selection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-327 | A02:2021 | | Disallow dynamic algorithm names in Node.js crypto functions (CWE-327) | 🟢 | 💼 | | | | |
|
|
170
|
+
| [no-dynamic-command-string](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-dynamic-command-string?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-77 | A03:2021 | | Detects dynamically assembled command strings handed to a shell flag (bash -c) or to a command-runner that… | 🟢 | 💼 | | | | |
|
|
171
|
+
| [no-dynamic-dependency-loading](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-dynamic-dependency-loading?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-1104 | | | This rule detects dynamically constructed paths in require() and import() statements | 🟢 | | | | | |
|
|
172
|
+
| [no-dynamic-require](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-dynamic-require?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | | | | Forbid require() calls with non-literal arguments | 🟢 | | | | | |
|
|
173
|
+
| [no-ecb-mode](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-ecb-mode?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-327 | A02:2021 | | Disallow ECB encryption mode (use GCM or CBC instead) | 🟢 | 💼 | | | | |
|
|
174
|
+
| [no-env-injection](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-env-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-99 | A03:2021 | | Detects writes to process.env under a key the caller controls, which can overwrite PATH, NODE_OPTIONS or LD… | 🟢 | 💼 | | | | |
|
|
175
|
+
| [no-insecure-http-parser](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-insecure-http-parser?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-444 | A03:2021 | | Disallow insecureHTTPParser true on Node HTTP servers and clients | 🟢 | 💼 | | | | |
|
|
176
|
+
| [no-insecure-key-derivation](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-insecure-key-derivation?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-916 | A02:2021 | | Disallow PBKDF2 with insufficient iterations (< 100,000) | 🟢 | | | | | |
|
|
177
|
+
| [no-insecure-rsa-padding](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-insecure-rsa-padding?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-327 | A02:2021 | | Disallow RSA PKCS#1 v1.5 padding (CVE-2023-46809 Marvin Attack) | 🟢 | | | | | |
|
|
178
|
+
| [no-math-random-crypto](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-math-random-crypto?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-338 | A02:2021 | | Disallow Math.random() for cryptographic purposes (tokens, keys, secrets, salts, IVs) | 🟢 | 💼 | | | | |
|
|
179
|
+
| [no-self-signed-certs](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-self-signed-certs?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-295 | A07:2021 | | Disallow rejectUnauthorized false in TLS options | 🟢 | 💼 | | | | |
|
|
180
|
+
| [no-sha1-hash](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-sha1-hash?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-327 | A02:2021 | | Disallow sha1() from crypto-hash package (use sha256 or sha512) | 🟢 | | | | | |
|
|
181
|
+
| [no-shell-injection](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-shell-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-78 | A03:2021 | | Disallow string concatenation or template expressions in shell command arguments (CWE-78) | 🟢 | 💼 | | | | |
|
|
182
|
+
| [no-ssrf](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-ssrf?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-918 | A10:2021 | | Detect HTTP requests with user-controlled URLs (server-side request forgery). | 🟢 | | ⚠️ | | 💡 | |
|
|
183
|
+
| [no-static-iv](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-static-iv?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-329 | A02:2021 | | Disallow static or hardcoded initialization vectors (IVs) | 🟢 | 💼 | | | | |
|
|
184
|
+
| [no-timing-unsafe-compare](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-timing-unsafe-compare?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-208 | A02:2021 | | Disallow timing-unsafe comparison of secrets | 🟢 | | ⚠️ | | | |
|
|
185
|
+
| [no-toctou-vulnerability](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-toctou-vulnerability?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-367 | A01:2021 | | Detects Time-of-Check-Time-of-Use (TOCTOU) race condition vulnerabilities in file system operations. | 🟢 | 💼 | | | | |
|
|
186
|
+
| [no-unbounded-decompression](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-unbounded-decompression?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-409 | A05:2021 | | Require a maxOutputLength ceiling on zlib one-shot decompression | 🟢 | 💼 | | | | |
|
|
187
|
+
| [no-unsafe-buffer-alloc](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-unsafe-buffer-alloc?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-908 | A01:2021 | | Disallow `Buffer.allocUnsafe()` and `Buffer.allocUnsafeSlow()`, which return uninitialized memory. | 🟢 | | ⚠️ | | 💡 | |
|
|
188
|
+
| [no-unsafe-dynamic-require](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-unsafe-dynamic-require?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-494 | | | Disallows dynamic require() calls with non-literal arguments that could lead to security vulnerabilities | 🟢 | 💼 | | | | |
|
|
189
|
+
| [no-weak-cipher-algorithm](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-weak-cipher-algorithm?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-327 | A02:2021 | | Disallow weak cipher algorithms (DES, 3DES, RC4, Blowfish, RC2, IDEA) | 🟢 | 💼 | | | | |
|
|
190
|
+
| [no-weak-dh-parameters](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-weak-dh-parameters?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-326 | A04:2025 | | Disallow Diffie-Hellman and ECDH parameters below a safe strength | 🟢 | 💼 | | | | |
|
|
191
|
+
| [no-weak-hash-algorithm](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-weak-hash-algorithm?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-327 | A02:2021 | | Disallow weak hash algorithms (MD5, MD4, SHA-1, RIPEMD) | 🟢 | 💼 | | | | |
|
|
192
|
+
| [no-zip-slip](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/no-zip-slip?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-22 | | | Detects zip slip/archive extraction vulnerabilities | 🟢 | 💼 | | | | |
|
|
193
|
+
| [prefer-native-crypto](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/prefer-native-crypto?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-1104 | A06:2021 | | Prefer native crypto over third-party libraries | 🟢 | | | | | |
|
|
194
|
+
| [require-aead-tag-verification](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/require-aead-tag-verification?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-327 | A02:2021 | | Require AEAD decryption to verify the authentication tag (setAuthTag + final) | 🟢 | 💼 | | | | |
|
|
195
|
+
| [require-dependency-integrity](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/require-dependency-integrity?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-494 | | | CWE: [CWE-494](https://cwe.mitre.org/data/definitions/494.html) | 🟢 | 💼 | | | | |
|
|
196
|
+
| [require-secure-credential-storage](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/require-secure-credential-storage?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-312 | | | This rule detects a credential written to localStorage, sessionStorage, AsyncStorage or process.env without… | 🟢 | | | | | |
|
|
197
|
+
| [require-secure-deletion](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/require-secure-deletion?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-459 | | | CWE: [CWE-459](https://cwe.mitre.org/data/definitions/459.html) | 🟢 | | | | | |
|
|
198
|
+
| [require-storage-encryption](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/require-storage-encryption?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-312 | | | CWE: [CWE-312](https://cwe.mitre.org/data/definitions/312.html) | 🟢 | | | | | |
|
|
199
|
+
| [require-stream-error-handler](https://eslint.interlace.tools/docs/security/plugin-node-security/rules/require-stream-error-handler?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security) | CWE-248 | A04:2021 | | Require an error listener on streams passed to pipe, which does not forward errors | 🟢 | 💼 | | | | |
|
|
200
|
+
|
|
201
|
+
<!-- AUTO-GENERATED:ECOSYSTEM_TABLE:START - Do not edit manually -->
|
|
202
|
+
|
|
203
|
+
## 🔗 Related ESLint Plugins
|
|
204
|
+
|
|
205
|
+
Part of the **Interlace ESLint ecosystem** — AI-native rules with LLM-optimized error messages:
|
|
206
|
+
|
|
207
|
+
**Security**
|
|
208
|
+
|
|
209
|
+
| Plugin | Downloads | Description |
|
|
210
|
+
| :----------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------- |
|
|
211
|
+
| [`eslint-plugin-anthropic-security`](https://www.npmjs.com/package/eslint-plugin-anthropic-security) | [](https://www.npmjs.com/package/eslint-plugin-anthropic-security) | Anthropic SDK security. |
|
|
212
|
+
| [`eslint-plugin-browser-security`](https://www.npmjs.com/package/eslint-plugin-browser-security) | [](https://www.npmjs.com/package/eslint-plugin-browser-security) | XSS, DOM security. |
|
|
213
|
+
| [`eslint-plugin-drizzle-security`](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | [](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | Drizzle security. |
|
|
214
|
+
| [`eslint-plugin-express-security`](https://www.npmjs.com/package/eslint-plugin-express-security) | [](https://www.npmjs.com/package/eslint-plugin-express-security) | Express middleware hardening. |
|
|
215
|
+
| [`eslint-plugin-gemini-security`](https://www.npmjs.com/package/eslint-plugin-gemini-security) | [](https://www.npmjs.com/package/eslint-plugin-gemini-security) | Google Gemini SDK security. |
|
|
216
|
+
| [`eslint-plugin-jwt-security`](https://www.npmjs.com/package/eslint-plugin-jwt-security) | [](https://www.npmjs.com/package/eslint-plugin-jwt-security) | Token security. |
|
|
217
|
+
| [`eslint-plugin-knex-security`](https://www.npmjs.com/package/eslint-plugin-knex-security) | [](https://www.npmjs.com/package/eslint-plugin-knex-security) | Knex security. |
|
|
218
|
+
| [`eslint-plugin-lambda-security`](https://www.npmjs.com/package/eslint-plugin-lambda-security) | [](https://www.npmjs.com/package/eslint-plugin-lambda-security) | AWS Lambda hardening. |
|
|
219
|
+
| [`eslint-plugin-mcp-sdk-security`](https://www.npmjs.com/package/eslint-plugin-mcp-sdk-security) | [](https://www.npmjs.com/package/eslint-plugin-mcp-sdk-security) | MCP SDK security. |
|
|
220
|
+
| [`eslint-plugin-mongodb-security`](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | [](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | MongoDB injection. |
|
|
221
|
+
| [`eslint-plugin-mysql-security`](https://www.npmjs.com/package/eslint-plugin-mysql-security) | [](https://www.npmjs.com/package/eslint-plugin-mysql-security) | MySQL security. |
|
|
222
|
+
| [`eslint-plugin-nestjs-security`](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | [](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | NestJS framework hardening. |
|
|
223
|
+
| [`eslint-plugin-node-security`](https://www.npmjs.com/package/eslint-plugin-node-security) | [](https://www.npmjs.com/package/eslint-plugin-node-security) | Server-side patterns. |
|
|
224
|
+
| [`eslint-plugin-openai-security`](https://www.npmjs.com/package/eslint-plugin-openai-security) | [](https://www.npmjs.com/package/eslint-plugin-openai-security) | OpenAI SDK security. |
|
|
225
|
+
| [`eslint-plugin-postgresql-security`](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | [](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | PostgreSQL security. |
|
|
226
|
+
| [`eslint-plugin-prisma-security`](https://www.npmjs.com/package/eslint-plugin-prisma-security) | [](https://www.npmjs.com/package/eslint-plugin-prisma-security) | Prisma security. |
|
|
227
|
+
| [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) | [](https://www.npmjs.com/package/eslint-plugin-secure-coding) | Injection prevention. |
|
|
228
|
+
| [`eslint-plugin-sequelize-security`](https://www.npmjs.com/package/eslint-plugin-sequelize-security) | [](https://www.npmjs.com/package/eslint-plugin-sequelize-security) | Sequelize ORM security. |
|
|
229
|
+
| [`eslint-plugin-sqlite-security`](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | [](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | SQLite security. |
|
|
230
|
+
| [`eslint-plugin-supabase-security`](https://www.npmjs.com/package/eslint-plugin-supabase-security) | [](https://www.npmjs.com/package/eslint-plugin-supabase-security) | Supabase security. |
|
|
231
|
+
| [`eslint-plugin-typeorm-security`](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | [](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | TypeORM security. |
|
|
232
|
+
| [`eslint-plugin-vercel-ai-security`](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | [](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | AI SDK security. |
|
|
233
|
+
|
|
234
|
+
**Code quality**
|
|
235
|
+
|
|
236
|
+
| Plugin | Downloads | Description |
|
|
237
|
+
| :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------- |
|
|
238
|
+
| [`eslint-plugin-conventions`](https://www.npmjs.com/package/eslint-plugin-conventions) | [](https://www.npmjs.com/package/eslint-plugin-conventions) | Team-specific habits and styles. |
|
|
239
|
+
| [`eslint-plugin-import-next`](https://www.npmjs.com/package/eslint-plugin-import-next) | [](https://www.npmjs.com/package/eslint-plugin-import-next) | Fast cycle + import-graph analysis. |
|
|
240
|
+
| [`eslint-plugin-maintainability`](https://www.npmjs.com/package/eslint-plugin-maintainability) | [](https://www.npmjs.com/package/eslint-plugin-maintainability) | Cognitive load and clean-code patterns. |
|
|
241
|
+
| [`eslint-plugin-modernization`](https://www.npmjs.com/package/eslint-plugin-modernization) | [](https://www.npmjs.com/package/eslint-plugin-modernization) | ESNext migration + syntax evolution. |
|
|
242
|
+
| [`eslint-plugin-modularity`](https://www.npmjs.com/package/eslint-plugin-modularity) | [](https://www.npmjs.com/package/eslint-plugin-modularity) | Structural integrity and DDD patterns. |
|
|
243
|
+
| [`eslint-plugin-operability`](https://www.npmjs.com/package/eslint-plugin-operability) | [](https://www.npmjs.com/package/eslint-plugin-operability) | Production readiness and resource health. |
|
|
244
|
+
| [`eslint-plugin-react-a11y`](https://www.npmjs.com/package/eslint-plugin-react-a11y) | [](https://www.npmjs.com/package/eslint-plugin-react-a11y) | React accessibility / WCAG. |
|
|
245
|
+
| [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-plugin-react-features) | [](https://www.npmjs.com/package/eslint-plugin-react-features) | React best practices and optimization. |
|
|
246
|
+
| [`eslint-plugin-reliability`](https://www.npmjs.com/package/eslint-plugin-reliability) | [](https://www.npmjs.com/package/eslint-plugin-reliability) | Runtime stability and error safety. |
|
|
247
|
+
|
|
248
|
+
<!-- AUTO-GENERATED:ECOSYSTEM_TABLE:END -->
|
|
249
|
+
|
|
250
|
+
## ⭐ Support & follow
|
|
251
|
+
|
|
252
|
+
If this plugin caught a real bug for you, **[star the repo](https://github.com/ofri-peretz/eslint)** — stars are the signal that keeps the Interlace ESLint ecosystem maintained — and **[follow the writeups on Dev.to](https://dev.to/ofri-peretz)** for the benchmarks and security research behind these rules.
|
|
253
|
+
|
|
254
|
+
[](https://github.com/ofri-peretz/eslint)
|
|
255
|
+
|
|
256
|
+
## 📄 License
|
|
257
|
+
|
|
258
|
+
MIT © [Ofri Peretz](https://github.com/ofri-peretz)
|
|
259
|
+
|
|
260
|
+
<p align="center">
|
|
261
|
+
<a href="https://eslint.interlace.tools/docs/security/plugin-node-security?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security"><img src="https://eslint.interlace.tools/images/og-node-security.png" alt="ESLint Interlace Plugin" width="100%" /></a>
|
|
262
|
+
</p>
|
|
263
|
+
|
|
264
|
+
<p align="center">
|
|
265
|
+
<a href="https://eslint.interlace.tools/docs/security/plugin-node-security?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-node-security" target="blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/interlace-dark.svg"><img src="https://eslint.interlace.tools/logos/interlace-light.svg" alt="Interlace" height="70" /></picture></a>
|
|
266
|
+
</p>
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports
|
|
1
|
+
module.exports=require("eslint-plugin-node-security/oxlint");
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-node-security",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "5.8.1",
|
|
4
|
+
"description": "The node-security rules for oxlint and Vite+. Same rules and rule IDs as eslint-plugin-node-security.",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"types": "./index.d.ts",
|
|
7
8
|
"files": [
|
|
8
9
|
"index.js",
|
|
9
10
|
"index.d.ts",
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
"oxlint",
|
|
15
16
|
"oxlint-plugin",
|
|
16
17
|
"vite-plus",
|
|
17
|
-
"
|
|
18
|
+
"eslint",
|
|
18
19
|
"static-analysis",
|
|
19
20
|
"linting",
|
|
20
21
|
"code-quality",
|
|
@@ -47,18 +48,28 @@
|
|
|
47
48
|
"typescript",
|
|
48
49
|
"auto-fix"
|
|
49
50
|
],
|
|
50
|
-
"
|
|
51
|
-
"eslint-plugin-node-security": "5.6.12"
|
|
52
|
-
},
|
|
53
|
-
"license": "MIT",
|
|
51
|
+
"homepage": "https://eslint.interlace.tools/docs/security/plugin-node-security?utm_source=npm&utm_medium=referral&utm_campaign=oxlint-plugin-node-security",
|
|
54
52
|
"repository": {
|
|
55
53
|
"type": "git",
|
|
56
54
|
"url": "git+https://github.com/ofri-peretz/eslint.git",
|
|
57
55
|
"directory": "packages/oxlint-plugin-node-security"
|
|
58
56
|
},
|
|
59
|
-
"homepage": "https://eslint.interlace.tools/docs/security/plugin-node-security?utm_source=npm&utm_medium=referral&utm_campaign=eslint-plugin-node-security",
|
|
60
57
|
"bugs": {
|
|
61
58
|
"url": "https://github.com/ofri-peretz/eslint/issues"
|
|
62
59
|
},
|
|
63
|
-
"author": "Ofri Peretz <ofriperetzdev@gmail.com>"
|
|
60
|
+
"author": "Ofri Peretz <ofriperetzdev@gmail.com>",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=18.0.0"
|
|
64
|
+
},
|
|
65
|
+
"funding": {
|
|
66
|
+
"type": "github",
|
|
67
|
+
"url": "git+https://github.com/ofri-peretz/eslint.git"
|
|
68
|
+
},
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"access": "public"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"eslint-plugin-node-security": "5.8.1"
|
|
74
|
+
}
|
|
64
75
|
}
|