CVE-2026-47252 json
Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS plugins (Brave, Chrome, Edge, Reminders, Safari)
published 2026-06-08 5 mo ago modified 2026-09-30 39 d ago also GHSA-hrj8-hjv8-mgwc , GO-2026-5436 , EUVD-2026-82367
- cvss
- 9.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 53%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/julien040/anyquery/plugins/chrome 0.0.0-20240826075852-c651df0b8767
- go github.com/julien040/anyquery/plugins/brave 0.0.0-20240826075852-c651df0b8767
- go github.com/julien040/anyquery/plugins/edge 0.0.0-20240826075852-c651df0b8767
- go github.com/julien040/anyquery/plugins/safari 0.0.0-20240826075852-c651df0b8767
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
opensuse advisories openSUSE-SU-2026:21483-1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 52 d ago
Exploit prediction
0.70% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/julien040/anyquery/security/advisories/GHSA-hrj8-hjv8-mgwc referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed 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 |
Affected products
- julien040 anyquery
- anyquery github.com/julien040/anyquery/plugins/brave
- anyquery github.com/julien040/anyquery/plugins/chrome
- anyquery github.com/julien040/anyquery/plugins/edge
- anyquery github.com/julien040/anyquery/plugins/reminders
- anyquery github.com/julien040/anyquery/plugins/safari
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
Sources
- CVE List CVE-2026-47252
- GitHub Advisory GHSA-hrj8-hjv8-mgwc
- NVD CVE-2026-47252
- OSV GO-2026-5436
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.