UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

43 lines (42 loc) 1.2 kB
rules: - id: context-autoescape-off message: >- Detected a Context with autoescape disabled. If you are rendering any web pages, this exposes your application to cross-site scripting (XSS) vulnerabilities. Remove 'autoescape: False' or set it to 'True'. metadata: cwe: - "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')" owasp: - A07:2017 - Cross-Site Scripting (XSS) - A03:2021 - Injection references: - https://docs.djangoproject.com/en/3.1/ref/settings/#templates - https://docs.djangoproject.com/en/3.1/topics/templates/#django.template.backends.django.DjangoTemplates category: security technology: - django cwe2022-top25: true cwe2021-top25: true subcategory: - audit likelihood: LOW impact: MEDIUM confidence: LOW languages: - python severity: WARNING patterns: - pattern-either: - pattern: | {..., "autoescape": $FALSE, ...} - pattern: | $D["autoescape"] = $FALSE - metavariable-pattern: metavariable: $FALSE pattern: | False - focus-metavariable: $FALSE fix: | True