critical · CVSS v3 9 · EPSS 0.00047
CVE-2026-47252
CVE-2026-47252 enables authenticated macOS users of Anyquery to run arbitrary OS commands by injecting crafted URLs into the Chrome, Brave,
Overview
CVE-2026-47252 enables authenticated macOS users of Anyquery to run arbitrary OS commands by injecting crafted URLs into the Chrome, Brave, Edge, and Safari plugins. The vulnerability stems from unsanitized URL interpolation into AppleScript/JXA executed via osascript, allowing command execution with the Anyquery process’s privileges. It affects Anyquery versions prior to 0.4.5 on macOS.
Description
Anyquery is an SQL query engine built on top of SQLite. Prior to 0.4.5, authenticated users with INSERT or UPDATE access to affected macOS virtual tables can execute operating-system commands because the Chrome plugin and equivalent Brave, Edge, and Safari variants interpolate a SQL-controlled URL into AppleScript or JXA source passed to osascript. In plugins/chrome/tabs.go, tabsTable.Insert() passes the URL through fmt.Sprintf(newTabScript, url), and tabsTable.Update() uses fmt.Sprintf(setURLScript, pk, url). A URL containing quote and newline characters can break out of the intended string or property record and append script statements, resulting in arbitrary command execution with the privileges of the anyquery process on the macOS host. This issue is fixed in version 0.4.5.
Impact
The flaw compromises confidentiality, integrity, and availability of the affected macOS system. Authenticated users with INSERT or UPDATE rights can execute arbitrary commands, potentially exfiltrating data, modifying files, or disrupting services. System administrators and end‑users of Anyquery are directly impacted.
Remediation
Upgrade Anyquery to version 0.4.5 or later. If an upgrade is not immediately possible, revoke INSERT/UPDATE permissions on the virtual tables or disable the vulnerable plugins. Monitor for suspicious osascript activity and apply any vendor patches as soon as they become available.
Risk context
The vulnerability is rated critical (CVSS 9.0) but has a low EPSS score of 0.00047, indicating a low likelihood of exploitation in the wild. Nonetheless, the potential impact warrants prompt remediation.
Affected products
- Anyquery 0.4.4 macOS
- Anyquery Chrome plugin
- Anyquery Brave plugin
- Anyquery Edge plugin
- Anyquery Safari plugin
Scores
- Severity
- critical
- CVSS v2
- 9
- CVSS v3
- 9
- CVSS v4
- —
- EPSS
- 0.00047