Skip to content

Character card/chat UI is vulnerable to XSS and can lead to RCE

Critical
nekomeowww published GHSA-9832-f8jx-hw6f Sep 11, 2025

Package

AIRI_0.7.2-beta.2_macos_amd64.dmg (Binary)

Affected versions

v0.7.2-beta.2

Patched versions

v0.7.2-beta.3
AIRI_0.7.2-beta.2_macos_arm64.dmg (Binary)
v0.7.2-beta.2
v0.7.2-beta.3
AIRI_0.7.2-beta.2_windows_amd64-setup.exe (Binary)
v0.7.2-beta.2
v0.7.2-beta.3

Description

Summary

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.
apps/stage-web/src/pages/settings/airi-card/components/CardDetailDialog.vue
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 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.

Details

The content of PoC is:

<iframe src="javascript:window.__TAURI_INTERNALS__.invoke('plugin:mcp|connect_server', {command: 'calc.exe', args: []})"></iframe> 
image

You can trigger this command by uploading a card or directly creating a character card.

Once the character card is created, click it to execute the command.
image

Impact

Causes command execution

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

CVE ID

CVE-2025-59053

Weaknesses

Improper Control of Generation of Code ('Code Injection')

The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. Learn more on MITRE.

Credits