Security Digest · Vulnerability record
CVE-2026-47252: Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS Chrome Plugin
Anyquery is an SQL query engine built on top of SQLite.
CVSS 9.0 Critical EPSS 0.7% · p53
Should you act?
Critical, preconditions apply
Severe if exploited, but exploitation needs conditions that may not apply to you. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.
- Not in CISA KEV, but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.7%, percentile 53: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 53% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes
github.com/julien040/anyquery/plugins/chrome(Go) < 0.0.0-20240826075852-c651df0b8767, fixed in 0.0.0-20240826075852-c651df0b8767;github.com/julien040/anyquery/plugins/brave(Go) < 0.0.0-20240826075852-c651df0b8767, fixed in 0.0.0-20240826075852-c651df0b8767;github.com/julien040/anyquery/plugins/edge(Go) < 0.0.0-20240826075852-c651df0b8767, fixed in 0.0.0-20240826075852-c651df0b8767;github.com/julien040/anyquery/plugins/safari(Go) < 0.0.0-20240826075852-c651df0b8767, fixed in 0.0.0-20240826075852-c651df0b8767. Check your lockfile, including transitive dependencies.
What it is
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.
From the GitHub advisory
AppleScript/JXA Code Injection via Unescaped URL in macOS Chrome Plugin
| Field | Value | | ---------------- | ----- | | Repository | julien040/anyquery | | Affected version | 0.4.4 (commit 0abd460) | | Vulnerability | CWE-94 — Improper Control of Generation of Code | | Severity | High |
Summary
The chrometabs plugin (and equivalent Brave/Edge/Safari variants) interpolates a SQL-controlled url value directly into an AppleScript template via fmt.Sprintf(newTabScript, url) at plugins/chrome/tabs.go:141 without any escaping, then passes the result to exec.Command("osascript", "-e", ...). An authenticated anyquery user who can issue SQL INSERT INTO chrometabs statements — which requires local CLI access — can break out of the {URL:"..."} property record with a newline-containing payload and inject arbitrary AppleScript statements, including do shell script, achieving OS-level command execution on the macOS host. The same pattern applies to the Update path at tabs.go:169 via the JXA setURL.js script.
Affected Code
Weakness type: CWE-94.
Product: github.com/julien040/anyquery/plugins/chrome (Go) · Assigned by: GitHub_M · Published: 2026-09-17
Affected and fixed versions
| Ecosystem | Package | Vulnerable | First fixed |
|---|---|---|---|
| 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 |
| Vendor | Product | Affected versions (per CVE record) |
|---|---|---|
| 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 |
Severity scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_M | 3.1 | 9 Critical | 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 |
- Attack vector: network (remotely reachable)
- Attack complexity: low
- Privileges required: low (any account)
- User interaction: required (a user must click/open something)
- Scope: changed (can affect other components)
CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.
Exploitation and urgency
- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc, automatable no, technical impact total.
- FIRST EPSS (model of 2026-10-21): 0.70% probability of exploitation activity in the next 30 days; percentile 53.
Timeline
- — GitHub-reviewed advisory GHSA-hrj8-hjv8-mgwc published (critical)
- — CVE record last updated
- — CVE record published by GitHub_M
Sources and references
Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.
Vulnerability records
- GitHub Advisory GHSA-hrj8-hjv8-mgwc github.com
- CVE.org record CVE-2026-47252 cve.org
- NVD entry CVE-2026-47252 nvd.nist.gov
Other references from the CVE record and advisory
- github.com github.com
- github.com github.com
- github.com github.com