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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| julien040 | anyquery | < 0.4.5 | — |
| anyquery | github.com/julien040/anyquery/plugins/brave | < 0.2.0 | — |
| anyquery | github.com/julien040/anyquery/plugins/chrome | < 0.2.0 | — |
| anyquery | github.com/julien040/anyquery/plugins/edge | < 0.2.0 | — |
| anyquery | github.com/julien040/anyquery/plugins/reminders | < 0.2.0 | — |
| anyquery | github.com/julien040/anyquery/plugins/safari | < 0.2.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | govulncheck-vulndb | 0.0.20260723T184607-160000.1.1 | openSUSE-SU-2026:21483-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/julien040/anyquery/plugins/brave | < 0.0.0-20240826075852-c651df0b8767 | 0.0.0-20240826075852-c651df0b8767 | GHSA-hrj8-hjv8-mgwc |
| Go | github.com/julien040/anyquery/plugins/chrome | < 0.0.0-20240826075852-c651df0b8767 | 0.0.0-20240826075852-c651df0b8767 | GHSA-hrj8-hjv8-mgwc |
| Go | github.com/julien040/anyquery/plugins/edge | < 0.0.0-20240826075852-c651df0b8767 | 0.0.0-20240826075852-c651df0b8767 | GHSA-hrj8-hjv8-mgwc |
| Go | github.com/julien040/anyquery/plugins/safari | < 0.0.0-20240826075852-c651df0b8767 | 0.0.0-20240826075852-c651df0b8767 | GHSA-hrj8-hjv8-mgwc |
Advisories 1
- openSUSE-SU-2026:21483-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Jul 31, 2026