CVE-2026-25931
Awaiting Analysis Awaiting Analysis - Queue
Remote Code Execution via Trusted Workspace Bypass in vscode-spell-checker

Publication date: 2026-02-09

Last updated on: 2026-02-10

Assigner: GitHub, Inc.

Description
vscode-spell-checker is a basic spell checker that works well with code and documents. Prior to v4.5.4, DocumentSettings._determineIsTrusted treats the configuration value cSpell.trustedWorkspace as the authoritative trust flag. The value defaults to true (package.json) and is read from workspace configuration each time settings are fetched. The code coerces any truthy value to true and forwards it to ConfigLoader.setIsTrusted , which in turn allows JavaScript/TypeScript configuration files ( .cspell.config.js/.mjs/.ts , etc.) to be located and executed. Because no VS Code workspace-trust state is consulted, an untrusted workspace can keep the flag true and place a malicious .cspell.config.js ; opening the workspace causes the extension host to execute attacker-controlled Node.js code with the user’s privileges. This vulnerability is fixed in v4.5.4.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-09
Last Modified
2026-02-10
Generated
2026-06-16
AI Q&A
2026-02-10
EPSS Evaluated
2026-06-15
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
streetsidesoftware vscode_spell_checker to 4.5.4 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-829 The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.
CWE-807 The product uses a protection mechanism that relies on the existence or values of an input, but the input can be modified by an untrusted actor in a way that bypasses the protection mechanism.
CWE-276 During installation, installed file permissions are set to allow anyone to modify those files.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The vulnerability exists in the vscode-spell-checker extension prior to version 4.5.4. The extension's DocumentSettings._determineIsTrusted method treats the configuration value cSpell.trustedWorkspace as the authoritative trust flag, which defaults to true and is read from workspace configuration each time settings are fetched.

Because the code coerces any truthy value to true and forwards it to ConfigLoader.setIsTrusted without consulting the actual VS Code workspace-trust state, an untrusted workspace can keep this flag true and place a malicious .cspell.config.js file.

When the workspace is opened, the extension host executes this attacker-controlled Node.js code with the user's privileges, leading to potential code execution.

This vulnerability was fixed in version 4.5.4 of the extension.

Compliance Impact

I don't know

Detection Guidance

I don't know

Impact Analysis

This vulnerability can allow an attacker to execute arbitrary Node.js code on your machine with the same privileges as the user running the vscode-spell-checker extension.

An attacker can place a malicious .cspell.config.js file in an untrusted workspace, and when you open that workspace, the malicious code will run.

This can lead to full compromise of your user environment, including data theft, system manipulation, or further malware installation.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade vscode-spell-checker to version 4.5.4 or later, where the issue is fixed.

Avoid opening untrusted workspaces that might contain malicious .cspell.config.js files, as these can execute attacker-controlled Node.js code with your user privileges.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-25931. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart