CVE-2026-47252 PUBLISHED

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

Assigner: GitHub_M
Reserved: 18.05.2026 Published: 17.09.2026 Updated: 17.09.2026

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.

Metrics

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

Product Status

Vendor julien040
Product anyquery
Versions
  • Version < 0.4.5 is affected
Vendor anyquery
Product github.com/julien040/anyquery/plugins/brave
Versions
  • Version < 0.2.0 is affected
Vendor anyquery
Product github.com/julien040/anyquery/plugins/chrome
Versions
  • Version < 0.2.0 is affected
Vendor anyquery
Product github.com/julien040/anyquery/plugins/edge
Versions
  • Version < 0.2.0 is affected
Vendor anyquery
Product github.com/julien040/anyquery/plugins/reminders
Versions
  • Version < 0.2.0 is affected
Vendor anyquery
Product github.com/julien040/anyquery/plugins/safari
Versions
  • Version < 0.2.0 is affected

References

Problem Types

  • CWE-94: Improper Control of Generation of Code ('Code Injection') CWE