Lines 3202-3242javascript
3204 category: "Secrets Leakage",
3205 severity: "CRITICAL",
3206 pattern: /-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----/,
3207 description: "Unencrypted private cryptographic key committed to source repository.",
3208 recommendation: "Remove private key from git history and manage certificates through a secret manager."
3212 category: "Secrets Leakage",
3214 pattern: /(?:postgres|mysql|mongodb(?:\+srv)?):\/\/[a-zA-Z0-9_.-]+:[^@\s"']+@[a-zA-Z0-9_.-]+/i,
3215 description: "Hardcoded database connection string containing plaintext credentials.",
3216 recommendation: "Extract connection URI into DATABASE_URL environment variable."
3220 category: "Code Injection",
3222 pattern: /\beval\s*\(/,
3223 description: "Use of dangerous `eval()` function permits arbitrary code execution.",
3224 recommendation: "Avoid eval(). Use structured JSON.parse() or dedicated domain-specific parsers.",
LowEval
Package source references a known benign dynamic code generation pattern.
dist/index.jsView on unpkg · L3222 3225 fileExtensions: [".js", ".ts", ".jsx", ".tsx", ".py"]
3229 category: "Command Injection",
3231 pattern: /(?:child_process|cp)\.exec\s*\([^,)]*\+/,
3232 description: "Dynamic string concatenation in `child_process.exec()` creates command injection vectors.",
3233 recommendation: "Use `execFile` or `spawn` with an array of arguments rather than executing raw shell strings.",
3234 fileExtensions: [".js", ".ts"]
3238 category: "Broken Authentication",
3240 pattern: /jwt\.(?:sign|verify)\s*\([^,]+,\s*["'](?:secret|test|123456|dev|password)["']\s*\)/i,
3241 description: "Weak or hardcoded JWT secret key used in token signing/verification.",
3242 recommendation: "Use a high-entropy secret (at least 256 bits) loaded securely from environment variables.",