CVE-2026-47252Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS plugins (Brave,…
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.
What to do
Fixed builds are available from Go: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Go library | github.com/julien040/anyquery/plugins/brave | Fixed | 0.0.0-20240826075852-c651df0b8767 | GO-2026-5436 |
| Go library | github.com/julien040/anyquery/plugins/chrome | Fixed | 0.0.0-20240826075852-c651df0b8767 | GHSA-hrj8-hjv8-mgwc |
| Go library | github.com/julien040/anyquery/plugins/edge | Fixed | 0.0.0-20240826075852-c651df0b8767 | GHSA-hrj8-hjv8-mgwc |
| Go library | github.com/julien040/anyquery/plugins/safari | Fixed | 0.0.0-20240826075852-c651df0b8767 | GO-2026-5436 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- julien040 anyquery: affected: < 0.4.5
- anyquery github.com/julien040/anyquery/plugins/brave: affected: < 0.2.0
- anyquery github.com/julien040/anyquery/plugins/chrome: affected: < 0.2.0
- anyquery github.com/julien040/anyquery/plugins/edge: affected: < 0.2.0
- anyquery github.com/julien040/anyquery/plugins/reminders: affected: < 0.2.0
- anyquery github.com/julien040/anyquery/plugins/safari: affected: < 0.2.0
References
- https://github.com/julien040/anyquery/security/advisories/GHSA-hrj8-hjv8-mgwc
- https://github.com/julien040/anyquery/commit/33769e03bd4b0f76d7a20a4188cce7153f6db1c9
- https://github.com/julien040/anyquery/releases/tag/0.4.5
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.