CVE-2026-47252
Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS Chrome Plugin
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, mit einem normalen Benutzerkonto, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle. Der Angriff kann über die verwundbare Komponente hinaus wirken.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| go | github.com/julien040/anyquery/plugins/chrome | < 0.0.0-20240826075852-c651df0b8767 | 0.0.0-20240826075852-c651df0b8767 |
| go | github.com/julien040/anyquery/plugins/brave | < 0.0.0-20240826075852-c651df0b8767 | 0.0.0-20240826075852-c651df0b8767 |
| go | github.com/julien040/anyquery/plugins/edge | < 0.0.0-20240826075852-c651df0b8767 | 0.0.0-20240826075852-c651df0b8767 |
| go | github.com/julien040/anyquery/plugins/safari | < 0.0.0-20240826075852-c651df0b8767 | 0.0.0-20240826075852-c651df0b8767 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/advisories/GHSA-hrj8-hjv8-mgwc
- 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