UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

47 lines (46 loc) 1.2 kB
rules: - id: monaco-hover-htmlsupport message: >- If user input reaches `HoverProvider` while `supportHml` is set to `true` it may introduce an XSS vulnerability. Do not produce HTML for hovers with dynamically generated input. 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://github.com/microsoft/monaco-editor/issues/801 category: security technology: - monaco - monaco-editor cwe2022-top25: true cwe2021-top25: true subcategory: - audit likelihood: LOW impact: LOW confidence: LOW languages: - typescript - javascript severity: WARNING patterns: - pattern-either: - pattern-inside: | import "monaco-editor" ... - pattern-inside: | require("monaco-editor") ... - pattern-either: - pattern: | {value: $VAL, supportHtml: true} - pattern: | {value: $VAL, isTrusted: true} - pattern-inside: | {range: $R, contents: [...]} - pattern-not: | {..., value: "...", ...}