Skip to content

CVE-2026-47252 Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS plugins (Brave, Chrome, Edge, Reminders, Safari)

CriticalCVSS 9.0 EPSS 0.71%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

10 packages: 4 fixed.

PackageAffectedFixed inStatus
julien040 github.com/julien040/anyquery/plugins/brave(Go) < 0.0.0-20240826075852-c651df0b8767 0.0.0-20240826075852-c651df0b8767 Fixed
julien040 github.com/julien040/anyquery/plugins/chrome(Go) < 0.0.0-20240826075852-c651df0b8767 0.0.0-20240826075852-c651df0b8767 Fixed
julien040 github.com/julien040/anyquery/plugins/edge(Go) < 0.0.0-20240826075852-c651df0b8767 0.0.0-20240826075852-c651df0b8767 Fixed
julien040 github.com/julien040/anyquery/plugins/safari(Go) < 0.0.0-20240826075852-c651df0b8767 0.0.0-20240826075852-c651df0b8767 Fixed
anyquery github.com/julien040/anyquery/plugins/brave = < 0.2.0 No fix listed Versions listed
anyquery github.com/julien040/anyquery/plugins/chrome = < 0.2.0 No fix listed Versions listed
anyquery github.com/julien040/anyquery/plugins/edge = < 0.2.0 No fix listed Versions listed
anyquery github.com/julien040/anyquery/plugins/reminders = < 0.2.0 No fix listed Versions listed
anyquery github.com/julien040/anyquery/plugins/safari = < 0.2.0 No fix listed Versions listed
julien040 anyquery = < 0.4.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
julien040 anyquery = < 0.4.5 No fix listed
anyquery github.com/julien040/anyquery/plugins/brave = < 0.2.0 No fix listed
anyquery github.com/julien040/anyquery/plugins/chrome = < 0.2.0 No fix listed
anyquery github.com/julien040/anyquery/plugins/edge = < 0.2.0 No fix listed
anyquery github.com/julien040/anyquery/plugins/reminders = < 0.2.0 No fix listed
anyquery github.com/julien040/anyquery/plugins/safari = < 0.2.0 No fix listed
julien040 github.com/julien040/anyquery/plugins/chrome(Go) < 0.0.0-20240826075852-c651df0b8767 0.0.0-20240826075852-c651df0b8767
julien040 github.com/julien040/anyquery/plugins/brave(Go) < 0.0.0-20240826075852-c651df0b8767 0.0.0-20240826075852-c651df0b8767
julien040 github.com/julien040/anyquery/plugins/edge(Go) < 0.0.0-20240826075852-c651df0b8767 0.0.0-20240826075852-c651df0b8767
julien040 github.com/julien040/anyquery/plugins/safari(Go) < 0.0.0-20240826075852-c651df0b8767 0.0.0-20240826075852-c651df0b8767

References