# CVE-2026-25931: vscode-spell-checker has a workspace-trust bypass Code Execution

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 8% of CVEs (2026-11-30)
- Published: 2026-02-09T22:10:37.483Z
- Modified: 2026-06-17T10:25:26.907Z
- Weaknesses: CWE-276, CWE-807, CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- streetsidesoftware vscode-spell-checker: < 4.5.4

## References

- <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>

## Sources

- CVE List: [CVE-2026-25931](https://www.cve.org/CVERecord?id=CVE-2026-25931), CVE Terms of Use, modified 2026-02-10
- NVD: [CVE-2026-25931](https://nvd.nist.gov/vuln/detail/CVE-2026-25931), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25931 · Whole record: https://cve.day/CVE-2026-25931.json · Rebuilt by cve.day 2026-11-25T22:59:13.686Z
