Description
oxlint-plugin-node-security is the oxlint and Vite+ name for 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.
Covered natively by oxlint
None of these 45 rules has an oxlint built-in equivalent. Every rule here is new to oxlint.
- Why — a linter nobody reads protects nothing. We would rather miss a finding
than spend your attention on one that was never real.
- How — evidence, not names. A rule fires on what the code does, resolved
through the AST and ESLint's own scope analysis.
- What — every finding carries its fix, in prose for a human and as structured
JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.
That trade costs recall, and we measure it:
methodology
· results
· a false positive is a bug.
Getting Started
npm install oxlint-plugin-node-security --save-dev
Vite+
// vite.config.ts
import { defineConfig } from 'vite-plus';
export default defineConfig({
lint: {
jsPlugins: ['oxlint-plugin-node-security'],
rules: {
'node-security/detect-child-process': 'error',
'node-security/detect-eval-with-expression': 'error',
'node-security/no-arbitrary-file-access': 'error',
'node-security/no-cryptojs': 'error',
'node-security/no-data-in-temp-storage': 'error',
'node-security/no-deprecated-buffer': 'error',
'node-security/no-dynamic-algorithm-selection': 'error',
'node-security/no-dynamic-command-string': 'error',
'node-security/no-ecb-mode': 'error',
'node-security/no-env-injection': 'error',
'node-security/no-insecure-http-parser': 'error',
'node-security/no-math-random-crypto': 'error',
'node-security/no-self-signed-certs': 'error',
'node-security/no-shell-injection': 'error',
'node-security/no-static-iv': 'error',
'node-security/no-toctou-vulnerability': 'error',
'node-security/no-unbounded-decompression': 'error',
'node-security/no-unsafe-dynamic-require': 'error',
'node-security/no-weak-cipher-algorithm': 'error',
'node-security/no-weak-dh-parameters': 'error',
'node-security/no-weak-hash-algorithm': 'error',
'node-security/no-zip-slip': 'error',
'node-security/require-aead-tag-verification': 'error',
'node-security/require-dependency-integrity': 'error',
'node-security/require-stream-error-handler': 'error',
},
},
});
oxlint
{
"jsPlugins": ["oxlint-plugin-node-security"],
"rules": {
"node-security/detect-child-process": "error",
"node-security/detect-eval-with-expression": "error",
"node-security/no-arbitrary-file-access": "error",
"node-security/no-cryptojs": "error",
"node-security/no-data-in-temp-storage": "error",
"node-security/no-deprecated-buffer": "error",
"node-security/no-dynamic-algorithm-selection": "error",
"node-security/no-dynamic-command-string": "error",
"node-security/no-ecb-mode": "error",
"node-security/no-env-injection": "error",
"node-security/no-insecure-http-parser": "error",
"node-security/no-math-random-crypto": "error",
"node-security/no-self-signed-certs": "error",
"node-security/no-shell-injection": "error",
"node-security/no-static-iv": "error",
"node-security/no-toctou-vulnerability": "error",
"node-security/no-unbounded-decompression": "error",
"node-security/no-unsafe-dynamic-require": "error",
"node-security/no-weak-cipher-algorithm": "error",
"node-security/no-weak-dh-parameters": "error",
"node-security/no-weak-hash-algorithm": "error",
"node-security/no-zip-slip": "error",
"node-security/require-aead-tag-verification": "error",
"node-security/require-dependency-integrity": "error",
"node-security/require-stream-error-handler": "error"
}
}
These are the rules the plugin recommends (💼 in the table below).
ESLint
Install eslint-plugin-node-security instead. It has the same rules, plus presets for ESLint's flat config.
📦 Compatibility
| Package |
Version |
| oxlint |
verified on 1.94.0: CI loads every rule ID through jsPlugins |
| Vite+ |
lint.jsPlugins in vite.config.ts |
| Node.js |
>=22.13.0 |
Rules
Legend
| Icon |
Description |
| 💼 |
Recommended: Included in the recommended preset. |
| ⚠️ |
Warns: Set to warn in recommended preset. |
| 🔧 |
Auto-fixable: Automatically fixable by the --fix CLI option. |
| 💡 |
Suggestions: Providing code suggestions in IDE. |
| 🚫 |
Deprecated: This rule is deprecated. |
| 🟢 |
Type-unaware: AST-only, runs in oxlint JS-plugin tier. |
| 🟡 |
Type-aware (refining): pure-AST primary path; types refine precision. |
| 🟠 |
Type-aware (graceful): requires TS program; silent without it. |