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

- Severity: Critical 9.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-08T23:04:00.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-hrj8-hjv8-mgwc, GO-2026-5436
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- 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
- github.com/julien040/anyquery/plugins/chrome (Go): before 0.0.0-20240826075852-c651df0b8767
- github.com/julien040/anyquery/plugins/brave (Go): before 0.0.0-20240826075852-c651df0b8767
- github.com/julien040/anyquery/plugins/edge (Go): before 0.0.0-20240826075852-c651df0b8767
- github.com/julien040/anyquery/plugins/safari (Go): before 0.0.0-20240826075852-c651df0b8767

## Every score

- GitHub_M: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/julien040/anyquery/security/advisories/GHSA-hrj8-hjv8-mgwc> (exploit, advisory, web)
- <https://github.com/julien040/anyquery/commit/33769e03bd4b0f76d7a20a4188cce7153f6db1c9>
- <https://github.com/julien040/anyquery/releases/tag/0.4.5>
- <https://github.com/julien040/anyquery> (package)

## Sources

- CVE List: [CVE-2026-47252](https://www.cve.org/CVERecord?id=CVE-2026-47252), CVE Terms of Use, modified 2026-09-17
- GitHub Advisory Database: [GHSA-hrj8-hjv8-mgwc](https://github.com/advisories/GHSA-hrj8-hjv8-mgwc), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5436](https://pkg.go.dev/vuln/GO-2026-5436), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-47252](https://nvd.nist.gov/vuln/detail/CVE-2026-47252), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-47252 · Whole record: https://cve.day/CVE-2026-47252.json · Rebuilt by cve.day 2026-11-25T22:59:39.496Z
