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.
Published: 2026-09-17
Score: 9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary OS command execution
Action: Patch
AI Analysis

Impact

Anyquery is an SQL query engine that uses SQLite. Prior to version 0.4.5, the macOS plugins for Brave, Chrome, Edge, Reminders, and Safari included code that interpolates a user‑controlled URL into AppleScript or JavaScript for Automation (JXA) source that is then executed by osascript. When an authenticated user has INSERT or UPDATE access to the affected virtual tables, a specially crafted URL containing quote or newline characters can break out of the intended string context and inject additional script statements. This injection allows the attacker to execute arbitrary operating‑system commands with the privileges of the anyquery process, thereby compromising the integrity of the host system.

Affected Systems

Anyquery plugins for Brave, Chrome, Edge, Reminders, and Safari shipped in any releases before version 0.4.5 are affected. The CVE covers the anyquery engine itself and its macOS plugin interface; all prior releases containing the unescaped URL formatting are vulnerable.

Risk and Exploitability

The CVSS score of 9 signals critical severity. The EPSS score of less than 1% indicates a low likelihood of exploitation at the time of assessment, and the vulnerability is not listed in CISA’s KEV catalog. However, the exploit requires an authenticated user with INSERT or UPDATE capability on the virtual tables, a privilege that may exist in shared or multi‑tenant deployments. Successful exploitation would give the attacker full control over arbitrary commands on the host, making mitigation a priority despite the low exploitation probability.

Generated by OpenCVE AI on September 19, 2026 at 03:04 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade anyquery to version 0.4.5 or newer, which applies proper escaping to the URL before it is inserted into AppleScript/JXA code.
  • Revoke INSERT and UPDATE permissions on the vulnerable virtual tables for all users who are not explicitly authorized to perform such operations, thereby removing the ability to craft malicious URLs.
  • Disable or uninstall the anyquery macOS plugin in browsers until the patch is applied to eliminate the exposed attack vector.

Generated by OpenCVE AI on September 19, 2026 at 03:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hrj8-hjv8-mgwc Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS Chrome Plugin
History

Fri, 18 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
First Time appeared Julien040
Julien040 anyquery
Vendors & Products Julien040
Julien040 anyquery

Thu, 17 Sep 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 17 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
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.
Title Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS plugins (Brave, Chrome, Edge, Reminders, Safari)
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}


Subscriptions

Julien040 Anyquery
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-17T19:12:07.053Z

Reserved: 2026-05-18T22:54:18.273Z

Link: CVE-2026-47252

cve-icon Vulnrichment

Updated: 2026-09-17T19:11:58.193Z

cve-icon NVD

Status : Deferred

Published: 2026-09-17T19:16:48.083

Modified: 2026-09-30T17:51:56.193

Link: CVE-2026-47252

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-19T03:15:16Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')