CVE-2026-25931
published high CVSS 3.1 · 7.8vscode-spell-checker has a workspace-trust bypass Code Execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| streetsidesoftware | — | vscode-spell-checker< 4.5.4 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| streetsidesoftware | vscode-spell-checker | < 4.5.4 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-276 CWE-276: Incorrect Default Permissions
- CWE-807 CWE-807: Reliance on Untrusted Inputs in a Security Decision
- CWE-829 CWE-829: Inclusion of Functionality from Untrusted Control Sphere
References
4- https://drive.google.com/file/d/1mT4SOkkHSHU6NFfKwekysydAd3FUAC6K/view?usp=sharing
- https://github.com/streetsidesoftware/vscode-spell-checker/commit/f39af9a3a6f2a939a57171a24161ed735d41c575
- https://github.com/streetsidesoftware/vscode-spell-checker/releases/tag/code-spell-checker-v4.5.4
- https://github.com/streetsidesoftware/vscode-spell-checker/security/advisories/GHSA-mggq-68mr-58vj
Provider assertions
2GitHub_M · cna
vscode-spell-checker has a workspace-trust bypass Code Execution
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6b143a97ddce2ce03c39d3dc1bcfc5488b5a6dbb6fe1dfff2a3c82705ebebce2
- Ingested
- 23 Sep 2026, 09:07:08 UTC
- Source record
- Official CVE record