CVE-2026-47252 Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS plugins (Brave, Chrome, Edge, Reminders, Safari)

Critical 9.0 Published Updated

Authenticated users can execute arbitrary OS commands on macOS by injecting code into AppleScript via unescaped URLs in browser plugins.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-47252?

CVE-2026-47252 is a critical code injection vulnerability in anyquery, published on 17 Sep 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2026-47252?

12 open source packages ship an affected version, including github.com/julien040/anyquery/plugins/brave, github.com/julien040/anyquery/plugins/chrome and github.com/julien040/anyquery/plugins/edge.

PackageAffectedFixed in
github.com/julien040/anyquery/plugins/brave GoAll versions0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/brave GoAll versions0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/brave GoAll versions0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/chrome GoAll versions0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/chrome GoAll versions0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/chrome GoAll versions0.0.0-20240826075852-c651df0b8767
6 more packages
github.com/julien040/anyquery/plugins/edge GoAll versions0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/edge GoAll versions0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/edge GoAll versions0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/safari GoAll versions0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/safari GoAll versions0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/safari GoAll versions0.0.0-20240826075852-c651df0b8767

How do I fix CVE-2026-47252?

Upgrade github.com/julien040/anyquery/plugins/brave to 0.0.0-20240826075852-c651df0b8767 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-47252 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47252 exists.

Sources

Also known as GHSA-hrj8-hjv8-mgwc, GO-2026-5436.

Is CVE-2026-47252 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free