Vulnerabilities in pkg:npm/mcp-server-semgrep

PACKAGE
Advisory Identifier: GHSA-86hp-qxqp-w9wv
Advisory Summary

CVE-2026-7446 is a MODERATE (CVSS 7.3) mcp-server-semgrep has a command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Mcp server semgrep libraries in the npm ecosystem. The issue involves mcp-server-semgrep has a command injection issue. Remediation is available by upgrading affected packages to version 1.0.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/mcp-server-semgrep

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/mcp-server-semgrep. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-86hp-qxqp-w9wv CVE-2026-7446 MODERATE mcp-server-semgrep has a Command Injection issue

CVE-2026-7446 at a Glance

CVE Identifier CVE-2026-7446
GHSA Identifier GHSA-86hp-qxqp-w9wv
Severity MODERATE
CVSS v3.1 Base Score 7.3
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Mcp server semgrep
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-7446

To remediate this vulnerability, upgrade all affected Mcp server semgrep dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mcp-server-semgrep fixed: 1.0.1
npm install mcp-server-semgrep@1.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls mcp-server-semgrep

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-7446, inspect your project dependencies using npm:

npm ls mcp-server-semgrep

Analyze the terminal output to locate any version of Mcp server semgrep in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.1), your application is affected.

Note: The npm ls mcp-server-semgrep command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Mcp server semgrep, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability was detected in VetCoders mcp-server-semgrep 1.0.0. This affects the function analyze_results/filter_results/export_results/compare_results/scan_directory/create_rule of the file src/index.ts of the component MCP Interface. The manipulation of the argument ID results in os command injection. The attack can be executed remotely. The exploit is now public and may be used. Upgrading to version 1.0.1 is able to mitigate this issue. The patch is identified as 141335da044e53c3f5b315e0386e01238405b771. It is advisable to upgrade the affected component.

CVE-2026-7446 Affected Mcp server semgrep Versions

1 component(s)
Fixed Versions:
1.0.1
Product / Package Ecosystem Affected Versions Fixed Version
mcp-server-semgrep
npm
< 1.0.1
1.0.1

References

Frequently Asked Questions

What is CVE-2026-7446?
CVE-2026-7446 is a security vulnerability in Mcp server semgrep involving mcp-server-semgrep has a Command Injection issue under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Mcp server semgrep versions are affected?
Affected versions include releases prior to 1.0.1 across affected packages: mcp-server-semgrep.
What version fixes CVE-2026-7446?
Upgrading to 1.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mcp-server-semgrep affected?
Yes, mcp-server-semgrep is affected in releases prior to 1.0.1. Upgrade your dependency to 1.0.1 or later.
What is the CVSS score of CVE-2026-7446?
CVE-2026-7446 has a CVSS v3.1 base score of 7.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-7446?
CVE-2026-7446 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2026-7446?
Run the dependency tree command: 'npm ls mcp-server-semgrep'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-86hp-qxqp-w9wv",
  "modified" : "2026-05-06T23:28:35Z",
  "published" : "2026-04-30T00:31:22Z",
  "aliases" : [ "CVE-2026-7446" ],
  "summary" : "mcp-server-semgrep has a Command Injection issue",
  "details" : "A vulnerability was detected in VetCoders mcp-server-semgrep 1.0.0. This affects the function analyze_results/filter_results/export_results/compare_results/scan_directory/create_rule of the file src/index.ts of the component MCP Interface. The manipulation of the argument ID results in os command injection. The attack can be executed remotely. The exploit is now public and may be used. Upgrading to version 1.0.1 is able to mitigate this issue. The patch is identified as 141335da044e53c3f5b315e0386e01238405b771. It is advisable to upgrade the affected component.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "mcp-server-semgrep"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.0.0"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-7446"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VetCoders/mcp-server-semgrep/issues/12"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VetCoders/mcp-server-semgrep/pull/15"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VetCoders/mcp-server-semgrep/commit/141335da044e53c3f5b315e0386e01238405b771"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/VetCoders/mcp-server-semgrep"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/VetCoders/mcp-server-semgrep/releases/tag/v1.0.1"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/804100"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/360187"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/360187/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-06T23:28:35Z",
    "nvd_published_at" : "2026-04-30T00:16:23Z"
  }
}