CVE-2025-27554 Code injection in ToDesktop
Attackers can execute arbitrary commands on the build server via malicious postinstall scripts, potentially reading secrets and deploying updates.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-27554?
CVE-2025-27554 is a critical code injection vulnerability in ToDesktop, published on 1 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
ToDesktop before 2024-10-03, as used by Cursor before 2024-10-03 and other applications, allows remote attackers to execute arbitrary commands on the build server (e.g., read secrets from the desktopify config.prod.json file), and consequently deploy updates to any app, via a postinstall script in package.json. No exploitation occurred.
Weakness: CWE-94
Which versions are affected by CVE-2025-27554?
How do I fix CVE-2025-27554?
No fix has been published for CVE-2025-27554 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-2025-27554 being exploited?
There is no known exploitation of CVE-2025-27554 in the wild and no public exploit code.
Sources
Also known as GHSA-6662-3hpj-63qq.