Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/julien040/anyquery/plugins/edge
  4. ›
  5. CVE-2026-47252

CVE-2026-47252: Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS Chrome Plugin

June 8, 2026

The chrome_tabs 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 chrome_tabs 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 setURL.js script.

References

  • github.com/advisories/GHSA-hrj8-hjv8-mgwc
  • github.com/julien040/anyquery/security/advisories/GHSA-hrj8-hjv8-mgwc
  • nvd.nist.gov/vuln/detail/CVE-2026-47252

Code Behaviors & Features

Detect and mitigate CVE-2026-47252 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20240826075852-c651df0b8767

Fixed versions

  • 0.0.0-20240826075852-c651df0b8767

Solution

Upgrade to version 0.0.0-20240826075852-c651df0b8767 or above.

Impact 9 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

go/github.com/julien040/anyquery/plugins/edge/CVE-2026-47252.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:49 +0000.