UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

23 lines (22 loc) 586 B
rules: - id: insecure-use-scanf-fn pattern: scanf(...) message: >- Avoid using 'scanf()'. This function, when used improperly, does not consider buffer boundaries and can lead to buffer overflows. Use 'fgets()' instead for reading input. metadata: cwe: - 'CWE-676: Use of Potentially Dangerous Function' references: - http://sekrit.de/webdocs/c/beginners-guide-away-from-scanf.html category: security technology: - c confidence: LOW subcategory: - audit likelihood: LOW impact: HIGH languages: [c] severity: WARNING