Vulnerabilities / CVE-2026-47252

critical

CVE-2026-47252

Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS Chrome Plugin

Published Modified CWE 94
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

GHSA9.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by GHSA.

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 packages and fixed versions

SourcePackageFixed in
go::GitHub Security Advisory Gogithub.com/julien040/anyquery/plugins/brave, github.com/julien040/anyquery/plugins/chrome, github.com/julien040/anyquery/plugins/edge and 1 more0.0.0-20240826075852-c651df0b8767
Show all 4 entries from 1 source
SourcePackageFixed in
go::GitHub Security Advisory Gogithub.com/julien040/anyquery/plugins/brave0.0.0-20240826075852-c651df0b8767
go::GitHub Security Advisory Gogithub.com/julien040/anyquery/plugins/chrome0.0.0-20240826075852-c651df0b8767
go::GitHub Security Advisory Gogithub.com/julien040/anyquery/plugins/edge0.0.0-20240826075852-c651df0b8767
go::GitHub Security Advisory Gogithub.com/julien040/anyquery/plugins/safari0.0.0-20240826075852-c651df0b8767

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.