Skip to main content

@justice8096/sagemath-mcp-server CVE-2026-106763

| EUVDEUVD-2026-109096 HIGH
2026-10-23 mitre GHSA-2vq3-mpmf-9xgr
7.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted code to MCP server
  2. Exploit
    Bypass escapeShellString/sanitizeCode filters
  3. Execution
    Inject shell commands
  4. Impact
    Execute arbitrary code on host

Vulnerability Assessment

Exploitation Conditions

Requires the vulnerable @justice8096/sagemath-mcp-server version 1.0.1 to be deployed and to process attacker-supplied code/input that is routed through the sanitization path. Exploitation depends on user or agent interaction (UI:R) to pass the malicious input to the tool and on a payload specifically crafted to bypass the escapeShellString and sanitizeCode functions (AC:H). Limiting factors that reduce realistic risk: mandatory user interaction, high attack complexity, and the product's very small install base; the trigger beyond 'insufficient sanitization in escapeShellString/sanitizeCode' is not further detailed in the available sources.

Impact

Signals are mixed and lean toward moderate real-world priority despite the 7.5 (High) base score. The CVSS vector supplied by MITRE shows AV:N and PR:N (remote, no authentication) but is tempered by AC:H (a payload must be crafted to defeat the escapeShellString and sanitizeCode filters) and UI:R (an operator or agent must route the malicious input through the tool), which materially lowers the score from what an AV:N/AC:L/UI:N RCE would carry. No EPSS score is provided in the input, so exploitation probability cannot be quantified. The vulnerability is NOT in CISA KEV and there is no confirmed active exploitation - only a vuln.today 'this_week' decision label. A GitHub issue reference is present but is not verified as working exploit code, so POC status is best treated as a public PoC reference rather than confirmed exploit code. The dominant risk-reducing factor is prevalence: this is an obscure single-author npm MCP server with a negligible install base, so even full RCE represents a narrow, opportunistic exposure rather than a widespread threat. Net: a legitimately high-severity code-execution flaw on affected hosts, but low aggregate risk due to tiny footprint, required user interaction, and high attack complexity.

Exploit ScenarioDerived

An attacker crafts SageMath code or input containing shell metacharacters designed to slip past the escapeShellString and sanitizeCode routines; when the MCP server (driven by an operator or LLM agent) processes that input, the injected commands execute on the host with the server's privileges. A GitHub issue reference exists describing the flaw but is not verified as working exploit code, and success requires both user interaction (UI:R) and a payload tailored to evade the filters (AC:H).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 23, 2026

Command injection in @justice8096/sagemath-mcp-server 1.0.1 allows remote attackers to execute arbitrary code because the escapeShellString and sanitizeCode routines fail to adequately neutralize attacker-supplied input before it reaches shell execution. Only version 1.0.1 is identified as affected, and exploitation requires the package to be deployed and to process malicious input that a user or agent must route into the sanitization path (UI:R), with a payload specifically crafted to bypass both functions (AC:H). No CISA KEV entry or confirmed working exploit code was reported; a public issue reference exists, and the product's very small install base limits realistic exposure.

RemediationAI

No vendor-released fixed version is identified in the available data; the only public vendor signal is issue 1 at https://github.com/justice8096/sagemath-mcp-server/issues/1, which should be monitored for a patched release, and users should verify the current npm version before upgrading. Until a fix is published, the practical mitigations are to remove or disable the @justice8096/sagemath-mcp-server 1.0.1 MCP server from agent and client configurations, with the trade-off that SageMath tooling becomes unavailable to those agents, or to restrict it to trusted, non-privileged environments with no access to sensitive files or credentials, accepting residual risk since the sanitization bypass remains reachable. Because exploitation requires user or agent interaction to route crafted input into escapeShellString and sanitizeCode, limiting which clients and prompts can invoke the server reduces exposure, at the cost of narrower functionality. Reviewing the advisory at https://stillosdigitalholdings.com/advisories/CVE-2026-106763.cve.json for updates is advisable.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is an npm-published Model Context Protocol server (@justice8096/sagemath-mcp-server) that exposes SageMath functionality to MCP clients, meaning it sits between an AI agent or user and local command execution. The root cause class is insufficient neutralization of special elements used in an OS command (command injection): the escapeShellString and sanitizeCode helpers are intended to make attacker-influenced strings safe before they are passed to a shell, but they can be bypassed, allowing injected commands to run with the privilege of the server process. The CPE data supplied is a placeholder (n/a:n/a), so the only confirmed affected artifact is the npm package at version 1.0.1; no CWE was assigned. The precise trigger beyond the inadequate sanitization in those two functions is not described in the available sources, and the high attack complexity and required user interaction reflect the need to deliver a payload crafted to defeat both filters rather than any documented race or timing condition.

Know when N A gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 7.5 HIGH
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

Remote and unauthenticated (AV:N/PR:N) but needs a filter-evading payload (AC:H) and an operator/agent to pass the input (UI:R); successful injection yields full host code execution (C/I/A:H).

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

An issue in @justice8096/sagemath-mcp-server 1.0.1 allows a remote attacker to execute arbitrary code via the escapeShellString and sanitizeCode functions.

Executive ViewAI

Why It Matters

A command injection vulnerability in the @justice8096/sagemath-mcp-server package version 1.0.1 could allow remote code execution if malicious input is processed through the package's sanitization routines. While the package has a very small install base, any deployment in your environment could be compromised, potentially enabling attackers to execute arbitrary commands on the host system. Leadership should care because this could lead to data breaches or system compromise, though the narrow exposure limits organizational risk.

Business Impact: Low
Compensating Controls

No vendor-released patch identified at time of analysis; restrict access to the package's interface, enforce strict input validation, and monitor for anomalous command execution attempts.

Threat Intelligence Overview

EPSS Score
0.7%
Top 47% exploitable
Prevalence
Rare
obscure single-author npm MCP server, negligible production footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Low

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy