Skip to content

← Actionable
Critical, CVSS 9.0

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

CVE-2026-47252GHSA-hrj8-hjv8-mgwc

What to do

Vendor fix available. Upgrade each affected package to the fixed version on its release line (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/chrome 0.0.0-20240826075852-c651df0b8767; github.com/julien040/anyquery/plugins/safari 0.0.0-20240826075852-c651df0b8767), redeploy, then verify what is actually installed.

This page has no inventory attached, so it cannot say whether you are affected. A vendor fix is not proof that your deployment is fixed.

Affected packages

Sources

  • GitHub Advisory Database and maintainer security advisories on GitHub

    GitHub-reviewed advisory GHSA-hrj8-hjv8-mgwc lists affected ranges: Go github.com/julien040/anyquery/plugins/chrome >=0 =0 =0 =0 <0.0.0-20240826075852-c651df0b8767

    VerifiedObserved Structured GitHub Advisory Database record (type=reviewed) from the GitHub REST API.

Severity and exploitation
Exploitation
No confirmed exploitation recorded. Patch Next marks exploitation only from CISA KEV.
CVSS
9.0 · CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
EPSS
  • CVE-2026-47252: 0.70% estimated exploitation activity in the next 30 days; percentile 53.38 (FIRST EPSS, 2026-11-03). This is a model estimate, not proof of exploitation or customer exposure.
Source description

As published by the source; long descriptions are shortened.

AppleScript/JXA Code Injection via Unescaped URL in macOS Chrome Plugin | Field | Value | | ---------------- | ----- | | Repository | julien040/anyquery | | Affected version | 0.4.4 (commit 0abd460) | | Vulnerability | CWE-94 — Improper Control of Generation of Code | | Severity | High | Summary The chrometabs plugin (and equivalent Brave/Edge/Safari variants) interpolates a SQL-controlled url value directly into an AppleScript template via fmt.Sprintf(newTabScript, url) at plugins/chrome/tabs.go:141 without any escaping, then passes the result to exec.Command("osascript", "-e", ...). An authenticated anyquery user who can issue SQL INSERT INTO chrometabs statements — which requires local CLI access — can break out of the {URL:"..."} property record with a newline-containing payload and inject arbitrary AppleScript statements, including do shell script, achieving OS-level command execution on the macOS host. The same pattern applies to the Update path at tabs.go:169 via the JXA…

Dates and revisions
Published by the source
Last modified by the source
Source last checked
  1. Revision 1 · created ·

    Published from ghsa record GHSA-hrj8-hjv8-mgwc

Agent brief

Preview the exact text before you copy it. Commands are read-only suggestions; review them before running anything.

# Patch Next advisory brief: CVE-2026-47252

Advisory: Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS Chrome Plugin
IDs: CVE-2026-47252, GHSA-hrj8-hjv8-mgwc
Record: https://patchnext.com/advisories/cve-2026-47252 (revision 1, source checked 26 Oct 2026, 15:23 UTC)
Inventory: none attached. This brief comes from a public page and does not say whether any deployment is affected.
Severity: Critical (CVSS 9.0)
Exploitation: no confirmed exploitation recorded. Patch Next confirms exploitation only from CISA KEV.
Vendor response: Vendor fix available; fixed versions by package: 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/chrome 0.0.0-20240826075852-c651df0b8767; github.com/julien040/anyquery/plugins/safari 0.0.0-20240826075852-c651df0b8767. A vendor fix does not mean a deployment is fixed.

## Affected components
- Go github.com/julien040/anyquery/plugins/brave: affected < 0.0.0-20240826075852-c651df0b8767; fixed in 0.0.0-20240826075852-c651df0b8767
- Go github.com/julien040/anyquery/plugins/edge: affected < 0.0.0-20240826075852-c651df0b8767; fixed in 0.0.0-20240826075852-c651df0b8767
- Go github.com/julien040/anyquery/plugins/chrome: affected < 0.0.0-20240826075852-c651df0b8767; fixed in 0.0.0-20240826075852-c651df0b8767
- Go github.com/julien040/anyquery/plugins/safari: affected < 0.0.0-20240826075852-c651df0b8767; fixed in 0.0.0-20240826075852-c651df0b8767

## Suggested inspection (read-only)
- Go github.com/julien040/anyquery/plugins/brave: check the installed version with your package manager.
- Go github.com/julien040/anyquery/plugins/edge: check the installed version with your package manager.
- Go github.com/julien040/anyquery/plugins/chrome: check the installed version with your package manager.
- Go github.com/julien040/anyquery/plugins/safari: check the installed version with your package manager.

## Supported action
Upgrade each affected component to a fixed version on its release line. For a transitive dependency, upgrade the parent package or add an override or constraint, then regenerate the lockfile. Redeploy every environment that ran an affected version.

## Required regression checks
- Run the test suite and a production build.
- Exercise the features that depend on github.com/julien040/anyquery/plugins/brave, github.com/julien040/anyquery/plugins/edge, github.com/julien040/anyquery/plugins/chrome, github.com/julien040/anyquery/plugins/safari.
- Repeat the inspection and confirm that only fixed versions remain installed.

## Rollback considerations
- Keep the previous lockfile and deployment artifact. Rolling back reinstates the vulnerable version, so apply any documented mitigation while you fix forward.

## Unresolved questions
- Which deployments run an affected version?
- Exploitation status can change. Check again before lowering the priority.
- Mark the work resolved only after the fixed version is verified in production.

## Sources
- Verified: https://github.com/advisories/GHSA-hrj8-hjv8-mgwc (GitHub-reviewed advisory GHSA-hrj8-hjv8-mgwc lists affected ranges: Go github.com/julien040/anyquery/plugins/chrome >=0 =0 =0 =0 <0.0.0-20240826075852-c651df0b8767)

Commands are suggestions: review each one before running it.

Loading voting…