CVE-2026-25931
7.8Street Side Software · vscode-spell-checker
A vulnerability in the vscode-spell-checker extension allows arbitrary code execution via malicious workspace configuration files in untrusted environments.
Executive summary
A critical vulnerability in the vscode-spell-checker extension enables attackers to execute arbitrary Node.js code with user privileges by tricking users into opening a compromised workspace.
Vulnerability
The extension improperly handles the cSpell.trustedWorkspace configuration flag, which allows untrusted workspaces to execute malicious JavaScript or TypeScript configuration files. This flaw relies on untrusted input to make security decisions, effectively bypassing VS Code workspace trust protections and granting an attacker code execution capabilities.
Business impact
The ability to execute arbitrary code with the privileges of the local user poses a significant risk to organizational security. An attacker could leverage this to steal sensitive source code, exfiltrate environment variables, or establish persistence on developer workstations. Given the CVSS score of 7.8, this represents a high-severity threat that could lead to full system compromise if a developer opens a malicious repository.
Remediation
Immediate Action: Update the vscode-spell-checker extension to version 4.5.4 or later immediately.
Proactive Monitoring: Monitor developer workstation logs for unexpected child process creation or unauthorized file access originating from the VS Code extension host.
Compensating Controls: Avoid opening untrusted or unknown VS Code workspaces until the extension has been updated, and ensure that VS Code workspace trust settings are strictly enforced.
Exploitation status
Public Exploit Available: No (There is no confirmed public exploit or weaponized module available in the provided data).
Analyst recommendation
This vulnerability is highly dangerous for development environments, as it targets the trust model of the IDE itself. All teams using the vscode-spell-checker extension should prioritize updating to version 4.5.4 or higher across all developer workstations to prevent potential remote code execution. Failure to patch this issue leaves development environments vulnerable to supply chain attacks and credential theft.
Sources
- https://github.com/streetsidesoftware/vscode-spell-checker/security/advisories/GHSA-mggq-68mr-58vj
- https://github.com/streetsidesoftware/vscode-spell-checker/commit/f39af9a3a6f2a939a57171a24161ed735d41c575
- https://drive.google.com/file/d/1mT4SOkkHSHU6NFfKwekysydAd3FUAC6K/view?usp=sharing
- https://github.com/streetsidesoftware/vscode-spell-checker/releases/tag/code-spell-checker-v4.5.4