Vulnerability 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 Score
HIGH
Related Weaknesses (CWE)
References
- https://drive.google.com/file/d/1mT4SOkkHSHU6NFfKwekysydAd3FUAC6K/view?usp=shari
- https://github.com/streetsidesoftware/vscode-spell-checker/commit/f39af9a3a6f2a9
- https://github.com/streetsidesoftware/vscode-spell-checker/releases/tag/code-spe
- https://github.com/streetsidesoftware/vscode-spell-checker/security/advisories/G
FAQ
What is CVE-2026-25931?
CVE-2026-25931 is a vulnerability with a CVSS score of 7.8 (HIGH). 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 t...
How severe is CVE-2026-25931?
CVE-2026-25931 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-25931?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.