Vulnerability

CVE-2026-25931

highCVSS 3.1 7.8Published 9 Feb 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • drive.google.com /file/d/1mT4SOkkHSHU6NFfKwekysydAd3FUAC6K/view
  • github.com /streetsidesoftware/vscode-spell-checker/commit/f39af9a3a6f…
  • github.com /streetsidesoftware/vscode-spell-checker/releases/tag/code-…
  • github.com /streetsidesoftware/vscode-spell-checker/security/advisorie…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning