CVE-2026-47252

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

State
Published
Severity
9.0 Critical
Published
Sep 17, 2026
Updated
Sep 17, 2026
Reserved
May 18, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.0 CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:HGitHub_M

Weaknesses

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

Affected Products

ProductVersions
anyqueryjulien040
  • < 0.4.5Affected
github.com/julien040/anyquery/plugins/braveanyquery
  • < 0.2.0Affected
github.com/julien040/anyquery/plugins/chromeanyquery
  • < 0.2.0Affected
github.com/julien040/anyquery/plugins/edgeanyquery
  • < 0.2.0Affected
github.com/julien040/anyquery/plugins/remindersanyquery
  • < 0.2.0Affected
github.com/julien040/anyquery/plugins/safarianyquery
  • < 0.2.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.