CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2026-25931

High
Published: Translated: NVD NIST

Summary

vscode-spell-checker to podstawowy sprawdzacz pisowni, który działa z kodem i dokumentami. W wersjach przed 4.5.4, konfiguracja cSpell.trustedWorkspace była traktowana jako autorytatywna flaga zaufania, co pozwalało na wykonanie złośliwego kodu JavaScript/TypeScript w niezaufanym środowisku.

Risk Assessment

Organizacja może być narażona na wykonanie złośliwego kodu z uprawnieniami użytkownika, co może prowadzić do poważnych naruszeń bezpieczeństwa i utraty danych.

Recommendation

Zaleca się aktualizację do wersji 4.5.4 lub nowszej, aby usunąć tę podatność oraz przegląd konfiguracji zaufania w środowisku VS Code.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS