{"id":"CVE-2025-59053","summary":"AIRI's character card/chat UI is vulnerable to XSS and can lead to RCE","details":"AIRI is a self-hosted, artificial intelligence based Grok Companion. In v0.7.2-beta.2 in the `packages/stage-ui/src/components/MarkdownRenderer.vue` path, the Markdown content is processed using the useMarkdown composable, and the processed HTML is rendered directly into the DOM using v-html. An attacker creates a card file containing malicious HTML/JavaScript, then simply processes it using the highlightTagToHtml function (which simply replaces template tags without HTML escaping), and then directly renders it using v-html, leading to cross-site scripting (XSS). The project also exposes the Tauri API, which can be called from the frontend. The MCP plugin exposes a command execution interface function in `crates/tauri-plugin-mcp/src/lib.rs`. This allows arbitrary command execution. `connect_server` directly passes the user-supplied `command` and `args` parameters to `Command::new(command).args(args)` without any input validation or whitelisting. Thus, the previous XSS exploit could achieve command execution through this interface. v0.7.2-beta.3 fixes the issue.","aliases":["GHSA-9832-f8jx-hw6f"],"modified":"2026-08-12T03:51:47.593064036Z","published":"2025-09-11T18:26:52.485Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-94"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59053.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59053.json"},{"type":"ADVISORY","url":"https://github.com/moeru-ai/airi/security/advisories/GHSA-9832-f8jx-hw6f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59053"},{"type":"FIX","url":"https://github.com/moeru-ai/airi/commit/3315634903c9102a19e8f0476970df01801c8ca4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/moeru-ai/airi","events":[{"introduced":"6ffb13da8ed5ddcfbcb2ce103be86ecf07fbacd2"},{"fixed":"3315634903c9102a19e8f0476970df01801c8ca4"}],"database_specific":{"extracted_events":[{"introduced":"= 0.7.2-beta.2"},{"last_affected":"= 0.7.2-beta.2"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["= 0.7.2-beta.2","v0.7.2-beta.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-59053.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"}]}