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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.0
- **CVSS:** 9.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.70% (percentile 49, 2026-11-26)
- **CWE:** CWE-94
- **Aliases:** GHSA-hrj8-hjv8-mgwc, GO-2026-5436
- **Published:** 2026-06-08T23:04:00.000Z
- **Modified:** 2026-09-30T17:51:56.193Z

## Who should check

- Projects that depend on Go package github.com/julien040/anyquery/plugins/chrome (\< 0.0.0-20240826075852-c651df0b8767)
- Projects that depend on Go package github.com/julien040/anyquery/plugins/brave (\< 0.0.0-20240826075852-c651df0b8767)
- Projects that depend on Go package github.com/julien040/anyquery/plugins/edge (\< 0.0.0-20240826075852-c651df0b8767)
- Projects that depend on Go package github.com/julien040/anyquery/plugins/safari (\< 0.0.0-20240826075852-c651df0b8767)
- Anyone running julien040 anyquery \< 0.4.5
- Anyone running github.com/julien040/anyquery/plugins/brave \< 0.2.0
- Anyone running github.com/julien040/anyquery/plugins/chrome \< 0.2.0
- Anyone running github.com/julien040/anyquery/plugins/edge \< 0.2.0

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

## Affected and fixed versions

- Go `github.com/julien040/anyquery/plugins/chrome`: affected \< 0.0.0-20240826075852-c651df0b8767; fixed 0.0.0-20240826075852-c651df0b8767 (osv)
- Go `github.com/julien040/anyquery/plugins/brave`: affected \< 0.0.0-20240826075852-c651df0b8767; fixed 0.0.0-20240826075852-c651df0b8767 (osv)
- Go `github.com/julien040/anyquery/plugins/edge`: affected \< 0.0.0-20240826075852-c651df0b8767; fixed 0.0.0-20240826075852-c651df0b8767 (osv)
- Go `github.com/julien040/anyquery/plugins/safari`: affected \< 0.0.0-20240826075852-c651df0b8767; fixed 0.0.0-20240826075852-c651df0b8767 (osv)
- julien040 anyquery: \< 0.4.5 (cvelist)
- github.com/julien040/anyquery/plugins/brave: \< 0.2.0 (cvelist)
- github.com/julien040/anyquery/plugins/chrome: \< 0.2.0 (cvelist)
- github.com/julien040/anyquery/plugins/edge: \< 0.2.0 (cvelist)
- github.com/julien040/anyquery/plugins/reminders: \< 0.2.0 (cvelist)
- github.com/julien040/anyquery/plugins/safari: \< 0.2.0 (cvelist)

## Mitigation

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

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-47252. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-47252.md
Affected: github.com/julien040/anyquery/plugins/chrome < 0.0.0-20240826075852-c651df0b8767; github.com/julien040/anyquery/plugins/brave < 0.0.0-20240826075852-c651df0b8767; github.com/julien040/anyquery/plugins/edge < 0.0.0-20240826075852-c651df0b8767; github.com/julien040/anyquery/plugins/safari < 0.0.0-202…
Fixed in: 0.0.0-20240826075852-c651df0b8767

Steps:
1. Search this machine and project for github.com/julien040/anyquery/plugins/chrome (Go), github.com/julien040/anyquery/plugins/brave (Go), github.com/julien040/anyquery/plugins/edge (Go), github.com/julien040/anyquery/plugins/safari (Go), julien040 anyquery, github.com/julien040/anyquery/plugins/brave: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-47252 being exploited?

There is no confirmed exploitation: CVE-2026-47252 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.70% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-47252?

Critical: CVSS 9.0 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-47252?

github.com/julien040/anyquery/plugins/chrome \< 0.0.0-20240826075852-c651df0b8767; github.com/julien040/anyquery/plugins/brave \< 0.0.0-20240826075852-c651df0b8767; github.com/julien040/anyquery/plugins/edge \< 0.0.0-20240826075852-c651df0b8767; github.com/julien040/anyquery/plugins/safari \< 0.0.0-20240826075852-c651df0b8767.

### Is there a fix for CVE-2026-47252?

Yes. Fixed in 0.0.0-20240826075852-c651df0b8767. Upgrade github.com/julien040/anyquery/plugins/chrome to 0.0.0-20240826075852-c651df0b8767 or later. Upgrade github.com/julien040/anyquery/plugins/brave to 0.0.0-20240826075852-c651df0b8767 or later. Upgrade github.com/julien040/anyquery/plugins/edge to 0.0.0-20240826075852-c651df0b8767 or later. Upgrade github.com/julien040/anyquery/plugins/safari to 0.0.0-20240826075852-c651df0b8767 or later.

### How do I check if I'm affected by CVE-2026-47252?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/julien040/anyquery/security/advisories/GHSA-hrj8-hjv8-mgwc>
- patch: <https://github.com/julien040/anyquery/commit/33769e03bd4b0f76d7a20a4188cce7153f6db1c9>
- other: <https://github.com/julien040/anyquery/releases/tag/0.4.5>
- other: <https://github.com/julien040/anyquery>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-47252>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hrj8-hjv8-mgwc> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-5436> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-47252> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-47252>
