CVE-2026-40501 Cherry Studio RCE via SearchService nodeIntegration Misconfiguration
Remote attackers can execute arbitrary code with Node.js privileges by injecting malicious JavaScript into Electron windows with insecure configurations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-40501?
CVE-2026-40501 is a high-severity code injection vulnerability in CherryHQ cherry-studio, published on 15 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Cherry Studio versions 1.2.2 through 1.9.12, fixed in commit 1518530, contain a remote code execution vulnerability in SearchService that allows remote attackers to execute arbitrary code by delivering malicious JavaScript through controlled search provider content loaded into an Electron BrowserWindow configured with nodeIntegration enabled and contextIsolation disabled. Attackers who control a search engine provider, individual search result pages, or provider settings pages can execute JavaScript with full Node.js privileges, gaining access to fs, child_process, os, and process.env under the operating-system account of the Cherry Studio process.
Weakness: CWE-829
Which versions are affected by CVE-2026-40501?
How do I fix CVE-2026-40501?
No fix has been published for CVE-2026-40501 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-40501 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40501 exists.
Sources
Also known as GHSA-5c46-rj6r-wvm8.