UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

55 lines (54 loc) 1.55 kB
rules: - id: express-detect-notevil-usage message: >- Detected usage of the `notevil` package, which is unmaintained and has vulnerabilities. Using any sort of `eval()` functionality can be very dangerous, but if you must, the `eval` package is an up to date alternative. Be sure that only trusted input reaches an `eval()` function. metadata: category: security references: - https://github.com/mmckegg/notevil cwe: - 'CWE-1104: Use of Unmaintained Third Party Components' owasp: - A06:2021 - Vulnerable and Outdated Components technology: - javascript - typescript subcategory: - audit likelihood: LOW impact: HIGH confidence: LOW languages: - javascript - typescript severity: WARNING patterns: - pattern-either: - pattern-inside: | import $EVAL from 'notevil' ... - pattern-inside: | import {$EVAL} from 'notevil' ... - pattern-inside: | $EVAL = require('notevil') ... - pattern-either: - patterns: - pattern: $EVAL(...) - pattern-not: $EVAL('...') - patterns: - pattern-either: - pattern: $VM.runInContext("$CMD", ...) - pattern: $VM.runInNewContext("$CMD", ...) - pattern: $VM.runInThisContext("$CMD", ...) - pattern: $VM.compileFunction("$CMD", ...) - metavariable-pattern: patterns: - pattern: $EVAL(...) - pattern-not: $EVAL('...') metavariable: $CMD language: typescript